diff --git a/samples/AntiforgerySample/Startup.cs b/samples/AntiforgerySample/Startup.cs index df60314f9c..b227bb6c7c 100644 --- a/samples/AntiforgerySample/Startup.cs +++ b/samples/AntiforgerySample/Startup.cs @@ -71,7 +71,7 @@ namespace AntiforgerySample var host = new WebHostBuilder() .UseDefaultHostingConfiguration(args) .UseKestrel() - .UseIISPlatformHandlerUrl() + .UseIISIntegration() .UseStartup() .Build(); diff --git a/samples/AntiforgerySample/project.json b/samples/AntiforgerySample/project.json index fd999ad29b..67e82d719b 100644 --- a/samples/AntiforgerySample/project.json +++ b/samples/AntiforgerySample/project.json @@ -4,7 +4,7 @@ "Microsoft.AspNetCore.Antiforgery": "1.0.0-*", "Microsoft.AspNetCore.Http.Abstractions": "1.0.0-*", "Microsoft.AspNetCore.Http.Extensions": "1.0.0-*", - "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.NETCore.Platforms": "1.0.1-*", @@ -13,28 +13,19 @@ "compilationOptions": { "emitEntryPoint": true }, - "commands": { - "web": "AntiforgerySample" - }, "frameworks": { "net451": {}, "netstandardapp1.5": { "imports": [ - "dnxcore50", - "portable-net451+win8" - ] + "dnxcore50" + ], + "dependencies": { + "NETStandard.Library": "1.5.0-*" + } } }, - "publishExclude": [ - "node_modules", - "bower_components", - "**.xproj", - "**.user", - "**.vspscc" - ], - "exclude": [ + "content": [ "wwwroot", - "node_modules", - "bower_components" + "web.config" ] } \ No newline at end of file diff --git a/samples/AntiforgerySample/web.config b/samples/AntiforgerySample/web.config new file mode 100644 index 0000000000..22a337cbe2 --- /dev/null +++ b/samples/AntiforgerySample/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/AntiforgerySample/wwwroot/web.config b/samples/AntiforgerySample/wwwroot/web.config deleted file mode 100644 index 9a0d90abf8..0000000000 --- a/samples/AntiforgerySample/wwwroot/web.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file