2018-10-22 05:07:26 +00:00
|
|
|
[CmdletBinding(PositionalBinding=$false)]
|
|
|
|
Param(
|
|
|
|
[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,
|
|
|
|
[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 $_
|
|
|
|
Write-Host $_.Exception
|
|
|
|
Write-Host $_.ScriptStackTrace
|
|
|
|
ExitWithExitCode 1
|
|
|
|
}
|
2018-12-19 20:55:42 +00:00
|
|
|
|
|
|
|
ExitWithExitCode 0
|