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",