The behaviour expected of filter exceptions is: -> throw in a async task with a try...
[mono-project.git] / eng / common / msbuild.ps1
blobc6401230002fe4b1c9861998915aaf60c084d22e
1 [CmdletBinding(PositionalBinding=$false)]
2 Param(
3 [string] $verbosity = 'minimal',
4 [bool] $warnAsError = $true,
5 [bool] $nodeReuse = $true,
6 [switch] $ci,
7 [switch] $prepareMachine,
8 [Parameter(ValueFromRemainingArguments=$true)][String[]]$extraArgs
11 . $PSScriptRoot\tools.ps1
13 try {
14 if ($ci) {
15 $nodeReuse = $false
18 MSBuild @extraArgs
20 catch {
21 Write-Host $_.ScriptStackTrace
22 Write-PipelineTelemetryError -Category 'Build' -Message $_
23 ExitWithExitCode 1
26 ExitWithExitCode 0