diff --git a/samples/Mvc.Client/Program.cs b/samples/Mvc.Client/Program.cs index 028c4238..437738f4 100644 --- a/samples/Mvc.Client/Program.cs +++ b/samples/Mvc.Client/Program.cs @@ -8,7 +8,7 @@ namespace Mvc.Client { .ConfigureLogging(options => options.AddConsole()) .ConfigureLogging(options => options.AddDebug()) .UseDefaultHostingConfiguration(args) - .UseIISPlatformHandlerUrl() + .UseIISIntegration() .UseKestrel() .UseStartup() .Build(); diff --git a/samples/Mvc.Client/Startup.cs b/samples/Mvc.Client/Startup.cs index e1954a15..8578ad69 100644 --- a/samples/Mvc.Client/Startup.cs +++ b/samples/Mvc.Client/Startup.cs @@ -13,12 +13,9 @@ namespace Mvc.Client { }); services.AddMvc(); - services.AddMvcDnx(); } public void Configure(IApplicationBuilder app) { - app.UseIISPlatformHandler(); - app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.All }); diff --git a/samples/Mvc.Client/project.json b/samples/Mvc.Client/project.json index 97654806..61c66da1 100644 --- a/samples/Mvc.Client/project.json +++ b/samples/Mvc.Client/project.json @@ -1,4 +1,10 @@ { + "compilationOptions": { + "debugType": "portable", + "emitEntryPoint": true, + "preserveCompilationContext": true + }, + "dependencies": { "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-*", "Microsoft.AspNetCore.Authentication.OpenIdConnect": "0.1.0-*", @@ -7,7 +13,7 @@ "Microsoft.AspNetCore.HttpOverrides": "1.0.0-*", "Microsoft.AspNetCore.Hosting": "1.0.0-*", "Microsoft.AspNetCore.Mvc": "1.0.0-*", - "Microsoft.AspNetCore.Mvc.Dnx": "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-*", @@ -15,11 +21,15 @@ }, "frameworks": { - "net451": { }, + "net451": { + "frameworkAssemblies": { + "System.Runtime": { "type": "build" } + } + }, - "netstandardapp1.5": { + "netcoreapp1.0": { "dependencies": { - "NETStandard.Library": "1.5.0-*" + "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-*" } }, "imports": [ @@ -29,18 +39,10 @@ } }, - "compilationOptions": { - "emitEntryPoint": true, - "preserveCompilationContext": true - }, - - "commands": { - "web": "Mvc.Client" - }, - "content": [ "wwwroot", - "Views" + "Views", + "web.config" ], "exclude": [ diff --git a/samples/Mvc.Client/web.config b/samples/Mvc.Client/web.config new file mode 100644 index 00000000..98bc676e --- /dev/null +++ b/samples/Mvc.Client/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/Mvc.Client/wwwroot/web.config b/samples/Mvc.Client/wwwroot/web.config deleted file mode 100644 index c47e2a48..00000000 --- a/samples/Mvc.Client/wwwroot/web.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/samples/Mvc.Server/Program.cs b/samples/Mvc.Server/Program.cs index 7b0b761a..a3bdc32c 100644 --- a/samples/Mvc.Server/Program.cs +++ b/samples/Mvc.Server/Program.cs @@ -8,7 +8,7 @@ namespace Mvc.Server { .ConfigureLogging(options => options.AddConsole()) .ConfigureLogging(options => options.AddDebug()) .UseDefaultHostingConfiguration(args) - .UseIISPlatformHandlerUrl() + .UseIISIntegration() .UseKestrel() .UseStartup() .Build(); diff --git a/samples/Mvc.Server/Startup.cs b/samples/Mvc.Server/Startup.cs index 5b6d999d..dc5a75a8 100644 --- a/samples/Mvc.Server/Startup.cs +++ b/samples/Mvc.Server/Startup.cs @@ -24,7 +24,6 @@ namespace Mvc.Server { .Build(); services.AddMvc(); - services.AddMvcDnx(); services.AddEntityFramework() .AddEntityFrameworkSqlServer() @@ -41,8 +40,6 @@ namespace Mvc.Server { } public void Configure(IApplicationBuilder app) { - app.UseIISPlatformHandler(); - app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.All }); diff --git a/samples/Mvc.Server/project.json b/samples/Mvc.Server/project.json index 6f84a5eb..75eafa54 100644 --- a/samples/Mvc.Server/project.json +++ b/samples/Mvc.Server/project.json @@ -1,4 +1,10 @@ { + "compilationOptions": { + "debugType": "portable", + "emitEntryPoint": true, + "preserveCompilationContext": true + }, + "dependencies": { "AspNet.Security.OAuth.GitHub": "1.0.0-*", "AspNet.Security.OAuth.Introspection": "1.0.0-*", @@ -8,8 +14,8 @@ "Microsoft.AspNetCore.Diagnostics": "1.0.0-*", "Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*", "Microsoft.AspNetCore.HttpOverrides": "1.0.0-*", - "Microsoft.AspNetCore.Mvc.Dnx": "1.0.0-*", - "Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*", + "Microsoft.AspNetCore.Mvc": "1.0.0-*", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.StaticFiles": "1.0.0-*", "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*", @@ -25,9 +31,9 @@ } }, - "netstandardapp1.5": { + "netcoreapp1.0": { "dependencies": { - "NETStandard.Library": "1.5.0-*" + "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-*" } }, "imports": [ @@ -37,19 +43,11 @@ } }, - "compilationOptions": { - "emitEntryPoint": true, - "preserveCompilationContext": true - }, - - "commands": { - "web": "Mvc.Server" - }, - "content": [ "wwwroot", "Views", - "config.json" + "config.json", + "web.config" ], "exclude": [ diff --git a/samples/Mvc.Server/web.config b/samples/Mvc.Server/web.config new file mode 100644 index 00000000..02c084c1 --- /dev/null +++ b/samples/Mvc.Server/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/Mvc.Server/wwwroot/web.config b/samples/Mvc.Server/wwwroot/web.config deleted file mode 100644 index c47e2a48..00000000 --- a/samples/Mvc.Server/wwwroot/web.config +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file