diff --git a/samples/Mvc.Client/Program.cs b/samples/Mvc.Client/Program.cs index 3c4e0ad3..5d71b9eb 100644 --- a/samples/Mvc.Client/Program.cs +++ b/samples/Mvc.Client/Program.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Hosting; +using System.IO; +using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; @@ -17,6 +18,7 @@ namespace Mvc.Client .ConfigureLogging(options => options.AddConsole()) .ConfigureLogging(options => options.AddDebug()) .UseConfiguration(configuration) + .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseKestrel() .UseStartup() diff --git a/samples/Mvc.Client/Properties/launchSettings.json b/samples/Mvc.Client/Properties/launchSettings.json index 53029f9e..ea287081 100644 --- a/samples/Mvc.Client/Properties/launchSettings.json +++ b/samples/Mvc.Client/Properties/launchSettings.json @@ -15,11 +15,13 @@ "ASPNETCORE_ENVIRONMENT": "Development" } }, - "web": { - "commandName": "web", + "Mvc.Client": { + "commandName": "Project", + "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "http://localhost:53507/" } } } \ No newline at end of file diff --git a/samples/Mvc.Server/Program.cs b/samples/Mvc.Server/Program.cs index b1c8ae68..60a631da 100644 --- a/samples/Mvc.Server/Program.cs +++ b/samples/Mvc.Server/Program.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Hosting; +using System.IO; +using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; @@ -17,6 +18,7 @@ namespace Mvc.Server .ConfigureLogging(options => options.AddConsole()) .ConfigureLogging(options => options.AddDebug()) .UseConfiguration(configuration) + .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseKestrel() .UseStartup() diff --git a/samples/Mvc.Server/Properties/launchSettings.json b/samples/Mvc.Server/Properties/launchSettings.json index fd1157ab..0d172e93 100644 --- a/samples/Mvc.Server/Properties/launchSettings.json +++ b/samples/Mvc.Server/Properties/launchSettings.json @@ -15,11 +15,13 @@ "ASPNETCORE_ENVIRONMENT": "Development" } }, - "web": { - "commandName": "web", + "Mvc.Server": { + "commandName": "Project", + "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "http://localhost:54540/" } } } \ No newline at end of file