React to Hosting changes.

This commit is contained in:
Chris R 2015-12-21 10:20:59 -08:00
parent efcc7ae956
commit f3f7027438
4 changed files with 29 additions and 4 deletions

20
test/TestSites/Program.cs Normal file
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 TestSites
{
public static class Program
{
public static void Main(string[] args)
{
var application = new WebApplicationBuilder()
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
.UseStartup("TestSites")
.Build();
application.Run();
}
}
}

View File

@ -12,13 +12,13 @@
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": true, "launchBrowser": true,
"environmentVariables": { "environmentVariables": {
"ASPNET_ENV": "HelloWorld" "ASPNET_ENVIRONMENT": "HelloWorld"
} }
}, },
"web": { "web": {
"commandName": "web", "commandName": "web",
"environmentVariables": { "environmentVariables": {
"Hosting:Environment": "Development" "ASPNET_ENVIRONMENT": "HelloWorld"
} }
} }
} }

View File

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

View File

@ -20,8 +20,10 @@
} }
}, },
"commands": { "commands": {
"weblistener": "Microsoft.AspNet.Server.WebListener", "web": "TestSites"
"web": "Microsoft.AspNet.Server.Kestrel" },
"compilationOptions": {
"emitEntryPoint": true
}, },
"publishExclude": [ "publishExclude": [
"node_modules", "node_modules",