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 }
71 references to Environment
aspire (1)
DotNet\DotNetCliRunner.cs (1)
581startInfo.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)
41process.StartInfo.Environment.Clear(); 46process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure (2)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
41process.StartInfo.Environment.Clear(); 46process.StartInfo.Environment[key] = value;
Aspire.Hosting.Docker (2)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
41process.StartInfo.Environment.Clear(); 46process.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 (5)
CommandFactory\CommandFactoryUsingResolver.cs (2)
112if (!psi.Environment.ContainsKey(environmentVariable.Key)) 114psi.Environment.Add(environmentVariable.Key, environmentVariable.Value);
Commands\Test\MTP\TestApplication.cs (3)
105processStartInfo.Environment[entry.Key] = value; 111processStartInfo.Environment[name] = value; 123processStartInfo.Environment[Module.DotnetRootArchVariableName] = Path.GetDirectoryName(new Muxer().MuxerPath);
dotnet.Tests (4)
CommandTests\MSBuild\GivenMsbuildForwardingApp.cs (4)
40startInfo.Environment.ContainsKey(envVarName).Should().BeTrue(); 50.Environment[envVar]) 62.Environment[envVar]) 75string sessionId = startInfo.Environment[envVar];
dotnet-svcutil-lib (1)
Shared\Utilities\ProcessRunner.cs (1)
81proc.StartInfo.Environment.Add(environmentVar);
dotnet-watch (1)
Process\ProcessRunner.cs (1)
178process.StartInfo.Environment.Add(env.Key, env.Value);
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)
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)
240processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1"; 327processStartInfo.Environment.Remove("MSBUILD_EXE_PATH");
Microsoft.DotNet.Cli.Utils (2)
Command.cs (1)
104_process.StartInfo.Environment[name] = value;
ForwardingAppImplementation.cs (1)
83processInfo.Environment[entry.Key] = entry.Value;
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.Extensions.DataIngestion.MarkItDown (3)
MarkItDownReader.cs (3)
60startInfo.Environment["PYTHONIOENCODING"] = "utf-8"; 61startInfo.Environment["LC_ALL"] = "C.UTF-8"; 62startInfo.Environment["LANG"] = "C.UTF-8";
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
994options.StartInfo.Environment.Add(item.Key, item.Value);
Microsoft.NET.Build.Containers (2)
Tasks\CreateNewImageToolTask.cs (2)
80startInfo.Environment[ContainerHelpers.HostObjectUser] = extractionInfo.user; 81startInfo.Environment[ContainerHelpers.HostObjectPass] = extractionInfo.pass;
Microsoft.NET.TestFramework (2)
Commands\SdkCommandSpec.cs (2)
50ret.Environment[kvp.Key] = kvp.Value; 54ret.Environment.Remove(envToRemove);
sdk-tasks (1)
DotNetTool.cs (1)
25psi.Environment.Remove(environmentVariableName);
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)!);