63 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]; 1221startInfo.EnvironmentVariables["DOTNET_ROOT"] = sdkInstallPath; 1224startInfo.EnvironmentVariables["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 1227var currentPath = startInfo.EnvironmentVariables["PATH"] ?? Environment.GetEnvironmentVariable("PATH") ?? string.Empty; 1228startInfo.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;
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;