From 600da0a8acbbbd62ed68fa693baa2eb55b14a478 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Mon, 11 Jul 2016 23:36:54 +0100 Subject: [PATCH] Fix building from build.cmd on a path containing spaces Add additional quoting when passing the initial command to powershell. --- build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cmd b/build.cmd index bd617d268..ffc201f93 100644 --- a/build.cmd +++ b/build.cmd @@ -3,5 +3,5 @@ REM Copyright (c) .NET Foundation and contributors. All rights reserved. REM Licensed under the MIT license. See LICENSE file in the project root for full license information. -powershell -NoProfile -NoLogo -Command "%~dp0build_projects\dotnet-cli-build\build.ps1 %*; exit $LastExitCode;" +powershell -NoProfile -NoLogo -Command "& \"%~dp0build_projects\dotnet-cli-build\build.ps1\" %*; exit $LastExitCode;" if %errorlevel% neq 0 exit /b %errorlevel%