Handle directories with spaces during deployment publish #630

This commit is contained in:
John Luo 2016-03-15 17:49:16 -07:00
parent f76fb06c8f
commit 24279aa946
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ namespace Microsoft.AspNetCore.Server.Testing
DeploymentParameters.PublishedApplicationRootPath = publishRoot ?? Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
var parameters = $"publish {DeploymentParameters.ApplicationPath}"
+ $" -o {DeploymentParameters.PublishedApplicationRootPath}"
var parameters = $"publish \"{DeploymentParameters.ApplicationPath}\""
+ $" -o \"{DeploymentParameters.PublishedApplicationRootPath}\""
+ $" --framework {DeploymentParameters.PublishTargetFramework}";
Logger.LogInformation($"Executing command {DotnetCommandName} {parameters}");