79 references to EnvironmentVariables
aspire (11)
DotNet\DotNetCliRunner.cs (11)
531startInfo.EnvironmentVariables[envKvp.Key] = envKvp.Value; 543startInfo.EnvironmentVariables[KnownConfigNames.UnixSocketPath] = socketPath; 550startInfo.EnvironmentVariables[KnownConfigNames.CliProcessId] = GetCurrentProcessId().ToString(CultureInfo.InvariantCulture); 556startInfo.EnvironmentVariables[KnownConfigNames.CliProcessStarted] = GetCurrentProcessStartTime().ToString(CultureInfo.InvariantCulture); 560startInfo.EnvironmentVariables[KnownConfigNames.MsBuildTerminalLogger] = "false"; 563startInfo.EnvironmentVariables["DOTNET_NOLOGO"] = "1"; 571startInfo.EnvironmentVariables[KnownConfigNames.DebugSessionInfo] = configuration[KnownConfigNames.DebugSessionInfo]; 1222startInfo.EnvironmentVariables["DOTNET_ROOT"] = sdkInstallPath; 1225startInfo.EnvironmentVariables["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 1228var currentPath = startInfo.EnvironmentVariables["PATH"] ?? Environment.GetEnvironmentVariable("PATH") ?? string.Empty; 1229startInfo.EnvironmentVariables["PATH"] = $"{sdkInstallPath}{Path.PathSeparator}{currentPath}";
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
224psi.EnvironmentVariables.Remove("MSBuildSDKsPath");
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
224psi.EnvironmentVariables.Remove("MSBuildSDKsPath");
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
dotnet (1)
BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
dotnet.Tests (14)
CommandTests\MSBuild\GivenForwardingApp.cs (2)
74startInfo.EnvironmentVariables["env1"].Should().Be("env1value"); 75startInfo.EnvironmentVariables["env2"].Should().Be("env2value");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsproj.cs (2)
655result.StartInfo.EnvironmentVariables.ContainsKey(dotnetRoot).Should().BeTrue($"because {dotnetRoot} should be set"); 656result.StartInfo.EnvironmentVariables[dotnetRoot].Should().Be(Path.GetDirectoryName(dotnet));
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromDll.cs (2)
78result.StartInfo.EnvironmentVariables.ContainsKey(dotnetRoot).Should().BeTrue($"because {dotnetRoot} should be set"); 79result.StartInfo.EnvironmentVariables[dotnetRoot].Should().Be(Path.GetDirectoryName(dotnet));
CommandTests\VSTest\VSTestTests.cs (2)
117result.StartInfo.EnvironmentVariables.ContainsKey(dotnetRoot).Should().BeTrue($"because {dotnetRoot} should be set"); 118result.StartInfo.EnvironmentVariables[dotnetRoot].Should().Be(Path.GetDirectoryName(dotnet));
NuGetSignatureVerificationEnablerTests.cs (3)
151Assert.True(startInfo.EnvironmentVariables.ContainsKey(NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification)); 152Assert.Equal(expectedValue, startInfo.EnvironmentVariables[NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification]); 157Assert.False(startInfo.EnvironmentVariables.ContainsKey(NuGetSignatureVerificationEnabler.DotNetNuGetSignatureVerification));
ShellShimTests\ShellShimRepositoryTests.cs (3)
470processStartInfo.EnvironmentVariables["PATH"] = environmentProvider.GetEnvironmentVariable("PATH"); 473processStartInfo.EnvironmentVariables["DOTNET_ROOT"] = 478processStartInfo.EnvironmentVariables["DOTNET_ROOT(x86)"] =
dotnet-format (1)
Utilities\ProcessRunner.cs (1)
185processStartInfo.EnvironmentVariables[pair.Key] = pair.Value;
HelixTestRunner (2)
ProcessUtil.cs (2)
107process.StartInfo.EnvironmentVariables["COMPlus_DbgEnableMiniDump"] = "1"; 108process.StartInfo.EnvironmentVariables["COMPlus_DbgMiniDumpName"] = Path.Combine(dumpDirectoryPath, $"{Path.GetFileName(filename)}.%d.dmp");
InteropTests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
48processStartInfo.EnvironmentVariables[key] = value;
Microsoft.AspNetCore.Server.IntegrationTesting (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Microsoft.AspNetCore.Tests (9)
WebApplicationTests.cs (9)
1012options.StartInfo.EnvironmentVariables.Add("one", "unprefixed_one"); 1013options.StartInfo.EnvironmentVariables.Add("two", "unprefixed_two"); 1014options.StartInfo.EnvironmentVariables.Add("DOTNET_one", "DOTNET_one"); 1015options.StartInfo.EnvironmentVariables.Add("DOTNET_two", "DOTNET_two"); 1016options.StartInfo.EnvironmentVariables.Add("DOTNET_three", "DOTNET_three"); 1017options.StartInfo.EnvironmentVariables.Add("ASPNETCORE_one", "ASPNETCORE_one"); 1018options.StartInfo.EnvironmentVariables.Add("ASPNETCORE_two", "ASPNETCORE_two"); 1019options.StartInfo.EnvironmentVariables.Add("ASPNETCORE_three", "ASPNETCORE_three"); 1020options.StartInfo.EnvironmentVariables.Add("ASPNETCORE_four", "ASPNETCORE_four");
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
Microsoft.DotNet.Open.Api.Tools.Tests (1)
ProcessEx.cs (1)
72startInfo.EnvironmentVariables[envVar.Key] = envVar.Value;
Microsoft.DotNet.SignTool (3)
src\BatchSignUtil.cs (3)
432string path = processStartInfo.EnvironmentVariables["PATH"]; 434processStartInfo.EnvironmentVariables.Remove("PATH"); 435processStartInfo.EnvironmentVariables.Add("PATH", path);
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
48processStartInfo.EnvironmentVariables[key] = value;
Microsoft.Extensions.ApiDescription.Client.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
RunTests (1)
ProcessRunner.cs (1)
199processStartInfo.EnvironmentVariables[pair.Key] = pair.Value;
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
47psi.EnvironmentVariables["LC_ALL"] = "C";
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
116startInfo.EnvironmentVariables["DOTNET_ROOT"] = dotnetPath;
Templates.Blazor.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Templates.Mvc.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
Templates.Tests (3)
src\Shared\Process\ProcessEx.cs (3)
118startInfo.EnvironmentVariables[envVar.Key] = envVar.Value; 122startInfo.EnvironmentVariables["NUGET_PACKAGES"] = NUGET_PACKAGES; 126startInfo.EnvironmentVariables["NUGET_FALLBACK_PACKAGES"] = Environment.GetEnvironmentVariable("NUGET_FALLBACK_PACKAGES");
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
620startInfo.EnvironmentVariables[kvp.Key] = kvp.Value;