6 instantiations of BuildEnvironment
Aspire.EndToEnd.Tests (6)
IntegrationServicesFixture.cs (1)
41BuildEnvironment = new(useSystemDotNet: true);
tests\Shared\TemplatesTesting\BuildEnvironment.cs (5)
41new BuildEnvironment(sdkDirName: "dotnet-8")); 44new BuildEnvironment(sdkDirName: "dotnet-9")); 47new BuildEnvironment(sdkDirName: "dotnet-10")); 50new BuildEnvironment(sdkDirName: "dotnet-11")); 53new BuildEnvironment(sdkDirName: "dotnet-tests"));
34 references to BuildEnvironment
Aspire.EndToEnd.Tests (34)
IntegrationServicesFixture.cs (2)
33public BuildEnvironment BuildEnvironment { get; init; } 47_testProjectPath = Path.Combine(BuildEnvironment.TestAssetsPath, "testproject");
tests\Shared\TemplatesTesting\AspireProject.cs (9)
23Path.Combine(BuildEnvironment.TestAssetsPath, "nuget8.config"); 40private readonly BuildEnvironment _buildEnv; 42public AspireProject(string id, string baseDir, ITestOutputHelper testOutput, BuildEnvironment buildEnv, TestTargetFramework? tfm = default) 49TargetFramework = tfm ?? BuildEnvironment.DefaultTargetFramework; 80BuildEnvironment buildEnvironment, 97rootDir = projectDir = Path.Combine(BuildEnvironment.TestRootPath, id); 100string logPath = Path.Combine(BuildEnvironment.ForDefaultFramework.LogRootPath, id); 103var tfmToUse = targetFramework ?? BuildEnvironment.DefaultTargetFramework; 153File.Copy(Path.Combine(BuildEnvironment.TestAssetsPath, "EndPointWriterHook_cs"), Path.Combine(project.AppHostProjectDirectory, "EndPointWriterHook.cs"));
tests\Shared\TemplatesTesting\BuildEnvironment.cs (12)
40private static readonly Lazy<BuildEnvironment> s_net8Sdk = new(() => 43private static readonly Lazy<BuildEnvironment> s_net9Sdk = new(() => 46private static readonly Lazy<BuildEnvironment> s_net10Sdk = new(() => 49private static readonly Lazy<BuildEnvironment> s_net11Sdk = new(() => 52private static readonly Lazy<BuildEnvironment> s_net11SdkWithAllSupportedRuntimes = new(() => 55public static BuildEnvironment ForNet8SdkOnly => s_net8Sdk.Value; 56public static BuildEnvironment ForNet9SdkOnly => s_net9Sdk.Value; 57public static BuildEnvironment ForNet10SdkOnly => s_net10Sdk.Value; 58public static BuildEnvironment ForNet11SdkOnly => s_net11Sdk.Value; 59public static BuildEnvironment ForNet11SdkWithAllSupportedRuntimes => s_net11SdkWithAllSupportedRuntimes.Value; 61public static BuildEnvironment ForDefaultFramework => 284public BuildEnvironment(BuildEnvironment otherBuildEnvironment)
tests\Shared\TemplatesTesting\DotNetCommand.cs (4)
10protected readonly BuildEnvironment _buildEnvironment; 13public DotNetCommand(ITestOutputHelper _testOutput, bool useDefaultArgs = true, BuildEnvironment? buildEnv = null, string label = "") 14: base((buildEnv ?? BuildEnvironment.ForDefaultFramework).DotNet, _testOutput, label) 16_buildEnvironment = buildEnv ?? BuildEnvironment.ForDefaultFramework;
tests\Shared\TemplatesTesting\DotNetNewCommand.cs (1)
15BuildEnvironment? buildEnv = null,
tests\Shared\TemplatesTesting\RunCommand.cs (1)
10public RunCommand(ITestOutputHelper _testOutput, BuildEnvironment? buildEnv = null, string label="") : base(_testOutput, false, buildEnv, label)
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (5)
28var customHiveBaseDirectory = BuildEnvironment.IsRunningOnCI 35public async Task EnsureInstalledAsync(BuildEnvironment buildEnvironment) 37if (BuildEnvironment.IsRunningOnCI && File.Exists(_stampFilePath)) 103string workingDir = BuildEnvironment.IsRunningOnCI 105: Path.Combine(BuildEnvironment.TempDir, "templates", "working"); // avoid running from the repo