If MSBuild fails, it returns a non-zero return value. Forward this
failure to the calling scripts to fail earlier.
Signed-off-by: Owen Smith <owen.smith@citrix.com>
Type = $Type
}
& ".\msbuild.ps1" @params
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host -ForegroundColor Red "ERROR: Build failed, code:" $LASTEXITCODE
+ Exit $LASTEXITCODE
+ }
}
Function SdvBuild {
$c += Join-Path -Path $SolutionPath -ChildPath $Name
Invoke-Expression $c
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host -ForegroundColor Red "ERROR: MSBuild failed, code:" $LASTEXITCODE
+ Exit $LASTEXITCODE
+ }
}
Function Run-MSBuildSDV {