diff --git a/src/MusicStore/Program.cs b/src/MusicStore/Program.cs index 214bc9424c..dbd6dbe8df 100644 --- a/src/MusicStore/Program.cs +++ b/src/MusicStore/Program.cs @@ -7,8 +7,10 @@ namespace MusicStore public static void Main(string[] args) { var host = new WebHostBuilder() - .UseDefaultHostingConfiguration(args) + // We set the server before default args so that command line arguments can override it. + // This is used to allow deployers to choose the server for testing. .UseKestrel() + .UseDefaultHostingConfiguration(args) .UseIIS() .UseStartup("MusicStore") .Build(); diff --git a/src/MusicStore/project.json b/src/MusicStore/project.json index a609ce258d..83334d53fa 100644 --- a/src/MusicStore/project.json +++ b/src/MusicStore/project.json @@ -23,7 +23,6 @@ "Areas", "Views", "wwwroot", - "hosting.json", "config.json" ], "dependencies": {