1 write to Environment
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
437Environment = { [PathEnvVarName] = token.Token }
45 references to Environment
Aspire.EndToEnd.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
173AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\WorkloadTesting\ToolCommand.cs (3)
220psi.Environment["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 221psi.Environment["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 250psi.Environment[item.Key] = item.Value;
Aspire.Hosting (2)
Dcp\Process\ProcessUtil.cs (2)
39process.StartInfo.Environment.Clear(); 44process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure (2)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
39process.StartInfo.Environment.Clear(); 44process.StartInfo.Environment[key] = value;
Aspire.Workload.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
173AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\WorkloadTesting\ToolCommand.cs (3)
220psi.Environment["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 221psi.Environment["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 250psi.Environment[item.Key] = item.Value;
dotnet-svcutil-lib (1)
Shared\Utilities\ProcessRunner.cs (1)
81proc.StartInfo.Environment.Add(environmentVar);
HelixTestRunner (1)
ProcessUtil.cs (1)
115process.StartInfo.Environment.Add(kvp);
Microsoft.Arcade.Common (1)
Command.cs (1)
124_process.StartInfo.Environment[name] = value;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
73RemoveUnwantedEnvironmentVariables(processStartInfo.Environment);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\ApplicationDeployer.cs (1)
140var environment = startInfo.Environment;
ProcessHelpers.cs (1)
13var environment = startInfo.Environment;
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
56processStartInfo.Environment[keyValuePair.Key] = keyValuePair.Value;
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
677startInfo.Environment[entry.Key] = entry.Value; 687startInfo.Environment[variable.Key] = variable.Value;
Microsoft.Build.Utilities.UnitTests (9)
ToolTask_Tests.cs (9)
555startInfo.Environment["a"].ShouldBe("b"); 556startInfo.Environment["c"].ShouldBe("d"); 557startInfo.Environment[userVarName].ShouldBe("x"); 558startInfo.Environment["path"].ShouldBe(String.Empty); 564startInfo.Environment["programfiles"], 581task.StartInfo.Environment["a"].ShouldBe("b=c"); 642Assert.True(task.StartInfo.Environment["PATH"].Length > 0); 716task.DoProcessStartInfoMutation = (p) => p.Environment.Remove("a"); 723task.StartInfo.Environment.ContainsKey("a").ShouldBe(false);
Microsoft.CodeAnalysis.LanguageServer (4)
DotnetCliHelper.cs (4)
92startInfo.Environment.Remove(DotnetRootEnvVar); 98startInfo.Environment["DOTNET_CLI_UI_LANGUAGE"] = "en-US"; 103startInfo.Environment.Remove("MSBUILD_EXE_PATH"); 104startInfo.Environment.Remove("MSBuildExtensionsPath");
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessUtilities.cs (1)
54startInfo.Environment[entry.Key] = entry.Value;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
172processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1"; 253processStartInfo.Environment.Remove("MSBUILD_EXE_PATH");
Microsoft.DotNet.RemoteExecutor (4)
RemoteExecutor.cs (4)
450psi.Environment.Remove("Cor_Profiler"); 451psi.Environment.Remove("Cor_Enable_Profiling"); 452psi.Environment.Remove("CoreClr_Profiler"); 453psi.Environment.Remove("CoreClr_Enable_Profiling");
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
994options.StartInfo.Environment.Add(item.Key, item.Value);
System.Diagnostics.Process (3)
System\Diagnostics\Process.Unix.cs (2)
613var envp = new string[psi.Environment.Count]; 615foreach (KeyValuePair<string, string?> pair in psi.Environment)
System\Diagnostics\ProcessStartInfo.cs (1)
89public StringDictionary EnvironmentVariables => new StringDictionaryWrapper((Environment as DictionaryWrapper)!);