React to Hosting changes.

This commit is contained in:
Chris R 2015-12-21 10:54:47 -08:00
parent 5c98dd5d98
commit c31c6cd186
4 changed files with 35 additions and 5 deletions

View File

@ -0,0 +1,20 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Hosting;
namespace LocalizationWebsite
{
public static class Program
{
public static void Main(string[] args)
{
var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseStartup("LocalizationWebsite")
.Build();
application.Run();
}
}
}

View File

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

View File

@ -1,9 +1,9 @@
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
"warningsAsErrors": true,
"emitEntryPoint": true
},
"dependencies": {
@ -14,10 +14,8 @@
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel",
"kestrel": "Microsoft.AspNet.Server.Kestrel"
"web": "LocalizationWebsite"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }

View File

@ -0,0 +1,9 @@
<?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>