14 references to Environment
Microsoft.NET.Build.Tests (3)
AspNetCoreOnFullFramework.cs (1)
90TestContext.Current.AddTestEnvironmentVariables(toolCommandSpec.Environment);
GivenThatWeWantToGenerateADepsFileForATool.cs (2)
232TestContext.Current.AddTestEnvironmentVariables(toolCommandSpec.Environment); 233toolCommandSpec.Environment.Add("DOTNET_ROLL_FORWARD","LatestMajor");
Microsoft.NET.Publish.Tests (4)
GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs (2)
175runAppCommand.Environment["DOTNET_ROOT"] = Path.GetDirectoryName(TestContext.Current.ToolsetUnderTest.DotNetHostPath); 247runAppCommand.Environment["DOTNET_ROOT"] = Path.GetDirectoryName(TestContext.Current.ToolsetUnderTest.DotNetHostPath);
PublishWebApp.cs (1)
54runAppCommand.Environment["DOTNET_ROOT"] = Path.GetDirectoryName(TestContext.Current.ToolsetUnderTest.DotNetHostPath);
PublishWpfApp.cs (1)
62runAppCommand.Environment["DOTNET_ROOT"] = Path.GetDirectoryName(TestContext.Current.ToolsetUnderTest.DotNetHostPath);
Microsoft.NET.TestFramework (7)
Commands\DotnetCommand.cs (1)
21TestContext.Current.AddTestEnvironmentVariables(sdkCommandSpec.Environment);
Commands\NuGetExeRestoreCommand.cs (1)
74TestContext.Current.AddTestEnvironmentVariables(ret.Environment);
Commands\RunExeCommand.cs (1)
29TestContext.Current.AddTestEnvironmentVariables(sdkCommandSpec.Environment);
Commands\SdkCommandSpec.cs (1)
48foreach (var kvp in Environment)
Commands\TestCommand.cs (1)
91commandSpec.Environment[kvp.Key] = kvp.Value;
ToolsetInfo.cs (2)
234ret.Environment["DOTNET_HOST_PATH"] = string.Empty; 245TestContext.Current.AddTestEnvironmentVariables(ret.Environment);