From f3f7027438a071cf46637a9d4cb1c4c6c9322dc4 Mon Sep 17 00:00:00 2001 From: Chris R Date: Mon, 21 Dec 2015 10:20:59 -0800 Subject: [PATCH] React to Hosting changes. --- test/TestSites/Program.cs | 20 +++++++++++++++++++ test/TestSites/Properties/launchSettings.json | 4 ++-- test/TestSites/hosting.json | 3 +++ test/TestSites/project.json | 6 ++++-- 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 test/TestSites/Program.cs create mode 100644 test/TestSites/hosting.json diff --git a/test/TestSites/Program.cs b/test/TestSites/Program.cs new file mode 100644 index 0000000000..fa4dbb25c8 --- /dev/null +++ b/test/TestSites/Program.cs @@ -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(); + } + } +} diff --git a/test/TestSites/Properties/launchSettings.json b/test/TestSites/Properties/launchSettings.json index ef0298b09e..b58b1afd38 100644 --- a/test/TestSites/Properties/launchSettings.json +++ b/test/TestSites/Properties/launchSettings.json @@ -12,13 +12,13 @@ "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { - "ASPNET_ENV": "HelloWorld" + "ASPNET_ENVIRONMENT": "HelloWorld" } }, "web": { "commandName": "web", "environmentVariables": { - "Hosting:Environment": "Development" + "ASPNET_ENVIRONMENT": "HelloWorld" } } } diff --git a/test/TestSites/hosting.json b/test/TestSites/hosting.json new file mode 100644 index 0000000000..f8ef14574d --- /dev/null +++ b/test/TestSites/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} diff --git a/test/TestSites/project.json b/test/TestSites/project.json index f5f40509cd..1deaee70fb 100644 --- a/test/TestSites/project.json +++ b/test/TestSites/project.json @@ -20,8 +20,10 @@ } }, "commands": { - "weblistener": "Microsoft.AspNet.Server.WebListener", - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "TestSites" + }, + "compilationOptions": { + "emitEntryPoint": true }, "publishExclude": [ "node_modules",