2 writes to Environment
Microsoft.DotNet.ArcadeAzureIntegration (1)
AzureCliCredentialWithAzNoUpdateWrapper.cs (1)
85Environment = { { "PATH", path } }
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
437Environment = { [PathEnvVarName] = token.Token }
38 references to Environment
aspire (1)
DotNet\DotNetCliRunner.cs (1)
484startInfo.Environment.Select(kvp => new EnvVar { Name = kvp.Key, Value = kvp.Value }).ToList(),
Aspire.EndToEnd.Tests (4)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
192AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\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.Hosting.Tests (2)
AppHostSmokeTests.cs (2)
33remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__CliPath"] = dcpOptions.CliPath; 34remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__DashboardPath"] = dcpOptions.DashboardPath;
Aspire.Templates.Tests (4)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
192AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\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.CodeAnalysis.LanguageServer (4)
DotnetCliHelper.cs (4)
94startInfo.Environment.Remove(DotnetRootEnvVar); 100startInfo.Environment["DOTNET_CLI_UI_LANGUAGE"] = "en-US"; 105startInfo.Environment.Remove("MSBUILD_EXE_PATH"); 106startInfo.Environment.Remove("MSBuildExtensionsPath");
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
90processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1";
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessUtilities.cs (1)
54startInfo.Environment[entry.Key] = entry.Value;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
231processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1"; 330processStartInfo.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)!);