File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Servers/IIS/IntegrationTesting.IIS/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,9 @@ public override Task<DeploymentResult> DeployAsync()
86
86
// For now, only support using published output
87
87
DeploymentParameters . PublishApplicationBeforeDeployment = true ;
88
88
// Move ASPNETCORE_DETAILEDERRORS to web config env variables
89
- if ( IISDeploymentParameters . EnvironmentVariables . ContainsKey ( DetailedErrorsEnvironmentVariable ) )
89
+ if ( IISDeploymentParameters . EnvironmentVariables . TryGetValue ( DetailedErrorsEnvironmentVariable , out var value ) )
90
90
{
91
- IISDeploymentParameters . WebConfigBasedEnvironmentVariables [ DetailedErrorsEnvironmentVariable ] =
92
- IISDeploymentParameters . EnvironmentVariables [ DetailedErrorsEnvironmentVariable ] ;
91
+ IISDeploymentParameters . WebConfigBasedEnvironmentVariables [ DetailedErrorsEnvironmentVariable ] = value ;
93
92
94
93
IISDeploymentParameters . EnvironmentVariables . Remove ( DetailedErrorsEnvironmentVariable ) ;
95
94
}
You can’t perform that action at this time.
0 commit comments