10 references to WithToolVersion
Aspire.Hosting.Dotnet.Tests (6)
DotnetCliToolTests.cs (6)
29.WithToolVersion("2.0") 39Assert.Same(canonical, canonical.WithToolVersion("2.0")); 82var tool = builder.AddDotnetCliTool(resource).WithToolVersion("1.2.3"); 101Assert.ThrowsAny<ArgumentException>(() => tool.WithToolVersion(value!)); 111Assert.Throws<ArgumentNullException>(() => builder.WithToolVersion("1.0.0")); 171var tool = builder.AddDotnetCliTool("tool", "package").WithToolVersion("1.2.3").WithArgs("--help");
DotnetTool.AppHost (4)
AppHost.cs (4)
12.WithToolVersion("10.0.*") 22.WithToolVersion("9.0.652701"); 24.WithToolVersion("9.0.621003") 64.WithToolVersion("10.0.*")