diff --git a/samples/StaticFileSample/Startup.cs b/samples/StaticFileSample/Startup.cs index 275a8b4886..7d1f792163 100644 --- a/samples/StaticFileSample/Startup.cs +++ b/samples/StaticFileSample/Startup.cs @@ -31,7 +31,7 @@ namespace StaticFilesSample var host = new WebHostBuilder() .UseDefaultHostingConfiguration(args) .UseKestrel() - .UseIISPlatformHandlerUrl() + .UseIISIntegration() .UseStartup() .Build(); diff --git a/samples/StaticFileSample/project.json b/samples/StaticFileSample/project.json index 55696e4019..4bf9b90e92 100644 --- a/samples/StaticFileSample/project.json +++ b/samples/StaticFileSample/project.json @@ -2,25 +2,26 @@ "compilationOptions": { "emitEntryPoint": true }, - "commands": { - "web": "StaticFileSample" - }, "dependencies": { - "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.StaticFiles": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*" }, "frameworks": { - "dnx451": {}, + "net451": {}, "netstandardapp1.5": { + "dependencies": { + "NETStandard.Library": "1.5.0-*" + }, "imports": [ "dnxcore50" ] } }, "content": [ - "wwwroot/**/*" + "wwwroot", + "web.config" ] } \ No newline at end of file diff --git a/samples/StaticFileSample/web.config b/samples/StaticFileSample/web.config new file mode 100644 index 0000000000..f432a3c245 --- /dev/null +++ b/samples/StaticFileSample/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/StaticFileSample/wwwroot/web.config b/samples/StaticFileSample/wwwroot/web.config deleted file mode 100644 index 9a0d90abf8..0000000000 --- a/samples/StaticFileSample/wwwroot/web.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file