From dfae53d70de5cb8f1727a9d5b86c30eeaa582659 Mon Sep 17 00:00:00 2001 From: Barry Nolte Date: Fri, 19 Aug 2016 10:53:49 -0700 Subject: [PATCH] [build.psm1] - mc.exe input file needs quotes (#1943) For filenames that have spaces or paths to that file that have spaces, the input filename needs to have quotes around it. --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 2d51923a91..2ae457277f 100644 --- a/build.psm1 +++ b/build.psm1 @@ -275,7 +275,7 @@ function Start-PSBuild { $nativeResourcesFolder = $_ Get-ChildItem $nativeResourcesFolder -Filter "*.mc" | % { $command = @" -cmd.exe /C cd /d "$currentLocation" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch" "&" mc.exe -o -d -c -U $($_.FullName) -h "$nativeResourcesFolder" -r "$nativeResourcesFolder" +cmd.exe /C cd /d "$currentLocation" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch" "&" mc.exe -o -d -c -U "$($_.FullName)" -h "$nativeResourcesFolder" -r "$nativeResourcesFolder" "@ log " Executing mc.exe Command: $command" Start-NativeExecution { Invoke-Expression -Command:$command }