Reacting to hosting API changes

This commit is contained in:
John Luo 2016-01-12 18:07:17 -08:00
parent 6ba05add3f
commit c5cab7a786
19 changed files with 33 additions and 14 deletions

View File

@ -31,6 +31,7 @@ namespace ActionConstraintSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"web": "ActionConstraintSample.Web" "web": "ActionConstraintSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"
}, },

View File

@ -28,6 +28,7 @@ namespace CustomRouteSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"web": "CustomRouteSample.Web" "web": "CustomRouteSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"
}, },

View File

@ -45,6 +45,7 @@ namespace EmbeddedViewSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -7,6 +7,7 @@
}, },
"resource": "EmbeddedResources/**", "resource": "EmbeddedResources/**",
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.FileProviders.Embedded": "1.0.0-*", "Microsoft.AspNet.FileProviders.Embedded": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"

View File

@ -41,6 +41,7 @@ namespace FormatFilterSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"web": "FormatFilterSample.Web" "web": "FormatFilterSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Mvc.Formatters.Xml": "6.0.0-*", "Microsoft.AspNet.Mvc.Formatters.Xml": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"

View File

@ -40,6 +40,7 @@ namespace InlineConstraintSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -1,16 +1,17 @@
{ {
"compilationOptions": { "compilationOptions": {
"emitEntryPoint": true "emitEntryPoint": true
}, },
"commands": { "commands": {
"web": "InlineConstraintSample.Web" "web": "InlineConstraintSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Mvc": "6.0.0-*",
}, "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"
"frameworks": { },
"dnx451": { }, "frameworks": {
"dnxcore50": { } "dnx451": { },
} "dnxcore50": { }
}
} }

View File

@ -26,6 +26,7 @@ namespace JsonPatchSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"web": "JsonPatchSample.Web" "web": "JsonPatchSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"
}, },

View File

@ -44,6 +44,7 @@ namespace LocalizationSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*" "Microsoft.AspNet.Server.Kestrel": "1.0.0-*"
}, },

View File

@ -34,6 +34,7 @@ namespace MvcSandbox
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -40,6 +40,7 @@ namespace MvcSubAreaSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -6,6 +6,7 @@
"web": "MvcSubAreaSample.Web" "web": "MvcSubAreaSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Diagnostics": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*", "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*",

View File

@ -38,6 +38,7 @@ namespace TagHelperSample.Web
{ {
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args)) .UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();

View File

@ -7,6 +7,7 @@
"web": "TagHelperSample.Web" "web": "TagHelperSample.Web"
}, },
"dependencies": { "dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Diagnostics": "1.0.0-*",