2018-10-22 05:07:26 +00:00
|
|
|
[CmdletBinding(PositionalBinding=$false)]
|
|
|
|
Param(
|
2019-11-22 13:41:58 +00:00
|
|
|
[string] $verbosity = 'minimal',
|
2018-12-19 20:55:42 +00:00
|
|
|
[bool] $warnAsError = $true,
|
|
|
|
[bool] $nodeReuse = $true,
|
2018-10-22 05:07:26 +00:00
|
|
|
[switch] $ci,
|
|
|
|
[switch] $prepareMachine,
|
2021-05-06 13:01:50 +00:00
|
|
|
[switch] $excludePrereleaseVS,
|
2021-11-10 14:15:40 +00:00
|
|
|
[string] $msbuildEngine = $null,
|
2018-10-22 05:07:26 +00:00
|
|
|
[Parameter(ValueFromRemainingArguments=$true)][String[]]$extraArgs
|
|
|
|
)
|
|
|
|
|
|
|
|
. $PSScriptRoot\tools.ps1
|
|
|
|
|
|
|
|
try {
|
2018-12-19 20:55:42 +00:00
|
|
|
if ($ci) {
|
|
|
|
$nodeReuse = $false
|
|
|
|
}
|
|
|
|
|
2018-10-22 05:07:26 +00:00
|
|
|
MSBuild @extraArgs
|
2018-12-19 20:55:42 +00:00
|
|
|
}
|
2018-10-22 05:07:26 +00:00
|
|
|
catch {
|
|
|
|
Write-Host $_.ScriptStackTrace
|
2019-11-22 13:41:58 +00:00
|
|
|
Write-PipelineTelemetryError -Category 'Build' -Message $_
|
2018-10-22 05:07:26 +00:00
|
|
|
ExitWithExitCode 1
|
|
|
|
}
|
2018-12-19 20:55:42 +00:00
|
|
|
|
2020-04-30 12:44:30 +00:00
|
|
|
ExitWithExitCode 0
|