From 24279aa9462a3e22bf979aab0363d0842eed0b39 Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 15 Mar 2016 17:49:16 -0700 Subject: [PATCH] Handle directories with spaces during deployment publish #630 --- .../Deployers/ApplicationDeployer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.Testing/Deployers/ApplicationDeployer.cs b/src/Microsoft.AspNetCore.Server.Testing/Deployers/ApplicationDeployer.cs index 472f1ac717..f5e50ca740 100644 --- a/src/Microsoft.AspNetCore.Server.Testing/Deployers/ApplicationDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.Testing/Deployers/ApplicationDeployer.cs @@ -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}");