Merge branch 'release' into dev

This commit is contained in:
John Luo 2016-04-11 10:01:08 -07:00
commit e3a9bc07e5
5 changed files with 22 additions and 22 deletions

View File

@ -38,7 +38,7 @@ namespace RoutingSample.Web
b.Use(next => async (c) =>
{
var culture = new CultureInfo((string)c.GetRouteValue("lang"));
#if DNX451
#if NET451
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
#else
@ -66,7 +66,8 @@ namespace RoutingSample.Web
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseIISPlatformHandlerUrl()
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

View File

@ -1,3 +0,0 @@
{
"server": "Microsoft.AspNetCore.Server.Kestrel"
}

View File

@ -1,6 +1,6 @@
{
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Routing": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
@ -8,16 +8,18 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "RoutingSample.Web"
},
"frameworks": {
"dnx451": {},
"net451": {},
"netstandardapp1.5": {
"dependencies": {
"NETStandard.Library": "1.5.0-*"
},
"imports": [
"dnxcore50",
"portable-net451+win8"
"dnxcore50"
]
}
}
},
"content": [
"web.config"
]
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\RoutingSample.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" forwardWindowsAuthToken="false" startupTimeLimit="3600" />
</system.webServer>
</configuration>