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