[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.
This commit is contained in:
Barry Nolte 2016-08-19 10:53:49 -07:00 committed by Jason Shirk
parent 0211256d59
commit dfae53d70d

View File

@ -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 }