133 references to EnvironmentVariables
IIS.FunctionalTests (8)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
68deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_OUTOFPROCESS_HANDLER"] = temporaryFile;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
143deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG"] = "file"; 164deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG_FILE"] = firstTempFile;
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (3)
93deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1"; 120deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1"; 145deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1";
IIS.LongTests (24)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (22)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 768deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 792deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.NewHandler.FunctionalTests (24)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (22)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 768deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 792deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.NewShim.FunctionalTests (24)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (22)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 768deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 792deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
IISExpress.FunctionalTests (27)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
68deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_OUTOFPROCESS_HANDLER"] = temporaryFile;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (2)
25!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable)) 27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
143deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG"] = "file"; 164deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG_FILE"] = firstTempFile;
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (22)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 768deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 792deploymentParameters.EnvironmentVariables.Remove("ASPNETCORE_DETAILEDERRORS"); 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
229deploymentParameters.EnvironmentVariables.Add(new KeyValuePair<string, string>("aspnetcore_environment", environment)); 230deploymentParameters.EnvironmentVariables.Add(new KeyValuePair<string, string>("envKey", "envValue"));
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
ShutdownTests.cs (1)
63deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTMECHANIC"] = shutdownMechanic;
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
43deploymentParameters.EnvironmentVariables["queue"] = queueName;
Microsoft.AspNetCore.Server.IntegrationTesting (9)
Common\DeploymentParameters.cs (5)
16EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true"; 27EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true"; 66EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true"; 85foreach (var kvp in parameters.EnvironmentVariables) 87EnvironmentVariables.Add(kvp);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
173foreach (var envVariablePair in _deploymentParameters.EnvironmentVariables) 233var environmentVariables = string.Join("`,", _deploymentParameters.EnvironmentVariables.Select(envVariable => $"{envVariable.Key}={envVariable.Value}"));
Deployers\SelfHostDeployer.cs (2)
100DeploymentParameters.EnvironmentVariables["ASPNETCORE_CONTENTROOT"] = DeploymentParameters.ApplicationPath; 140AddEnvironmentVariablesToProcess(startInfo, DeploymentParameters.EnvironmentVariables);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (10)
IISDeployer.cs (6)
89if (IISDeploymentParameters.EnvironmentVariables.ContainsKey(DetailedErrorsEnvironmentVariable)) 92IISDeploymentParameters.EnvironmentVariables[DetailedErrorsEnvironmentVariable]; 94IISDeploymentParameters.EnvironmentVariables.Remove(DetailedErrorsEnvironmentVariable); 170if (DeploymentParameters.EnvironmentVariables.TryGetValue("ASPNETCORE_MODULE_DEBUG_FILE", out debugFile)) 360if (DeploymentParameters.EnvironmentVariables.Any()) 365foreach (var tuple in DeploymentParameters.EnvironmentVariables)
IISExpressDeployer.cs (4)
85DeploymentParameters.EnvironmentVariables["LAUNCHER_PATH"] = executableName; 86DeploymentParameters.EnvironmentVariables["LAUNCHER_ARGS"] = executableArgs; 90DeploymentParameters.EnvironmentVariables["ASPNETCORE_CONTENTROOT"] = DeploymentParameters.ApplicationPath; 188AddEnvironmentVariablesToProcess(startInfo, DeploymentParameters.EnvironmentVariables);
ServerComparison.FunctionalTests (1)
HelloWorldTest.cs (1)
56deploymentParameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";