mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Redirect std output as well - only write on error
Untabify
This commit is contained in:
@@ -158,7 +158,7 @@ function Msvs
|
||||
"/p:VisualStudioVersion=$VisualStudioVersion",
|
||||
"/p:Configuration=$Configuration",
|
||||
"/p:Platform=$Arch",
|
||||
"/verbosity:normal"
|
||||
"/verbosity:normal"
|
||||
)
|
||||
|
||||
$StartInfo = New-Object System.Diagnostics.ProcessStartInfo
|
||||
@@ -173,17 +173,22 @@ function Msvs
|
||||
|
||||
$StartInfo.UseShellExecute = $false
|
||||
$StartInfo.CreateNoWindow = $false
|
||||
$StartInfo.RedirectStandardError = $true
|
||||
$StartInfo.RedirectStandardError = $true
|
||||
$StartInfo.RedirectStandardOutput = $true
|
||||
|
||||
$Process = New-Object System.Diagnostics.Process
|
||||
$Process.StartInfo = $startInfo
|
||||
$Process.Start()
|
||||
$Process.Start()
|
||||
|
||||
$stdout = $Process.StandardOutput.ReadToEnd()
|
||||
$stderr = $Process.StandardError.ReadToEnd()
|
||||
|
||||
$Process.WaitForExit()
|
||||
|
||||
if($Process.ExitCode -ne 0)
|
||||
{
|
||||
$stderr = $Process.StandardError.ReadToEnd()
|
||||
Write-Host "stderr: $stderr"
|
||||
{
|
||||
Write-Host "stdout: $stdout"
|
||||
Write-Host "stderr: $stderr"
|
||||
Die "Build failed"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user