File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 67
67
<PackageReference Include =" Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" Version =" $(MicrosoftAspNetCoreAppPackageVersion)" />
68
68
<PackageReference Include =" Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version =" $(MicrosoftAspNetCoreAppPackageVersion)" />
69
69
70
- <!-- < PackageReference Include="Microsoft.AspNetCore.Server.IntegrationTesting.IIS" Version="$(MicrosoftAspNetCoreAppPackageVersion) " /> -- >
70
+ <PackageReference Include =" Microsoft.AspNetCore.Server.IntegrationTesting.IIS" Version =" 5.0.0-alpha1.19468.7 " />
71
71
72
72
<FrameworkReference Update =" Microsoft.AspNetCore.App" RuntimeFrameworkVersion =" $(MicrosoftAspNetCoreAppPackageVersion)" />
73
73
Original file line number Diff line number Diff line change @@ -172,16 +172,16 @@ public static void Main(string[] args)
172
172
{
173
173
webHostBuilder = webHostBuilder . UseHttpSys ( ) ;
174
174
}
175
- // #if NETCOREAPP2_2 || NETCOREAPP3_0
176
- // else if (String.Equals(Server, "IISInProcess", StringComparison.OrdinalIgnoreCase))
177
- // {
178
- // webHostBuilder = webHostBuilder.UseIIS();
179
- // }
180
- // #endif
181
- // else if (String.Equals(Server, "IISOutOfProcess", StringComparison.OrdinalIgnoreCase))
182
- // {
183
- // webHostBuilder = webHostBuilder.UseKestrel().UseIISIntegration();
184
- // }
175
+ #if NETCOREAPP2_2 || NETCOREAPP3_0
176
+ else if ( String . Equals ( Server , "IISInProcess" , StringComparison . OrdinalIgnoreCase ) )
177
+ {
178
+ webHostBuilder = webHostBuilder . UseIIS ( ) ;
179
+ }
180
+ #endif
181
+ else if ( String . Equals ( Server , "IISOutOfProcess" , StringComparison . OrdinalIgnoreCase ) )
182
+ {
183
+ webHostBuilder = webHostBuilder . UseKestrel ( ) . UseIISIntegration ( ) ;
184
+ }
185
185
else
186
186
{
187
187
throw new InvalidOperationException ( $ "Unknown server value: { Server } ") ;
You can’t perform that action at this time.
0 commit comments