Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 390fdd3

Browse files
committed
Move web.config and use ANCM
1 parent a344b25 commit 390fdd3

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

samples/StaticFileSample/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void Main(string[] args)
3131
var host = new WebHostBuilder()
3232
.UseDefaultHostingConfiguration(args)
3333
.UseKestrel()
34-
.UseIISPlatformHandlerUrl()
34+
.UseIISIntegration()
3535
.UseStartup<Startup>()
3636
.Build();
3737

samples/StaticFileSample/project.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22
"compilationOptions": {
33
"emitEntryPoint": true
44
},
5-
"commands": {
6-
"web": "StaticFileSample"
7-
},
85
"dependencies": {
9-
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
6+
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
107
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
118
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
129
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
1310
"Microsoft.NETCore.Platforms": "1.0.1-*"
1411
},
1512
"frameworks": {
16-
"dnx451": {},
13+
"net451": {},
1714
"netstandardapp1.5": {
15+
"dependencies": {
16+
"NETStandard.Library": "1.5.0-*"
17+
},
1818
"imports": [
1919
"dnxcore50"
2020
]
2121
}
2222
},
2323
"content": [
24-
"wwwroot/**/*"
24+
"wwwroot",
25+
"web.config"
2526
]
2627
}

samples/StaticFileSample/web.config

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<configuration>
3+
<system.webServer>
4+
<handlers>
5+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
6+
</handlers>
7+
<aspNetCore processPath=".\StaticFileSample.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
8+
</system.webServer>
9+
</configuration>

samples/StaticFileSample/wwwroot/web.config

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)