diff --git a/build.psm1 b/build.psm1 index c574860557..34a80c8f46 100644 --- a/build.psm1 +++ b/build.psm1 @@ -278,7 +278,7 @@ function Start-PSBuild { 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 } + Start-NativeExecution { Invoke-Expression -Command:$command 2>&1 } } }