File tree 3 files changed +21
-4
lines changed
src/Microsoft.AspNetCore.Server.IISIntegration
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 12
12
"commandName" : " IISExpress" ,
13
13
"launchBrowser" : true ,
14
14
"environmentVariables" : {
15
- "ASPNETCORE_ENVIRONMENT" : " Development"
15
+ "ASPNETCORE_ENVIRONMENT" : " Development" ,
16
+ "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES" : " Microsoft.AspNetCore.Server.IISIntegration"
16
17
}
17
18
},
18
19
"IISSample" : {
24
25
}
25
26
}
26
27
}
27
- }
28
+ }
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Linq ;
3
3
using Microsoft . AspNetCore . Builder ;
4
4
using Microsoft . AspNetCore . Hosting ;
@@ -76,7 +76,6 @@ public static void Main(string[] args)
76
76
{
77
77
var host = new WebHostBuilder ( )
78
78
. UseKestrel ( )
79
- . UseIISIntegration ( )
80
79
. UseStartup < Startup > ( )
81
80
. Build ( ) ;
82
81
Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
+ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
+
4
+ using Microsoft . AspNetCore . Hosting ;
5
+
6
+ [ assembly: HostingStartup ( typeof ( Microsoft . AspNetCore . Server . IISIntegration . IISHostingStartup ) ) ]
7
+
8
+ namespace Microsoft . AspNetCore . Server . IISIntegration
9
+ {
10
+ public class IISHostingStartup : IHostingStartup
11
+ {
12
+ public void Configure ( IWebHostBuilder builder )
13
+ {
14
+ builder . UseIISIntegration ( ) ;
15
+ }
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments