From a587270b61e1dbe524b7cdbc3a92d1a05696039e Mon Sep 17 00:00:00 2001 From: John Luo Date: Thu, 31 Mar 2016 11:01:58 -0700 Subject: [PATCH] Fix build --- src/MusicStore/Program.cs | 4 +++- src/MusicStore/project.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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": {