dotnet-installer/eng/common/msbuild.ps1

26 lines
503 B
PowerShell
Raw Normal View History

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 $_.ScriptStackTrace
Write-PipelineTelemetryError -Category 'Build' -Message $_
2018-10-22 05:07:26 +00:00
ExitWithExitCode 1
}
2018-12-19 20:55:42 +00:00
ExitWithExitCode 0