diff options
author | Jo Shields <joshield@microsoft.com> | 2019-05-02 17:24:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 17:24:10 +0300 |
commit | 748da2e4a93e820540f857ee8c6d3f752141f4de (patch) | |
tree | 33627940240d5ba4863da6ab11fd52c479c0c100 /eng/common/msbuild.ps1 | |
parent | c9c50f85f4ea7368b1aeaaed27564fcf6a1a3609 (diff) |
[netcore] Onboard Arcade (#14301)
Diffstat (limited to 'eng/common/msbuild.ps1')
-rw-r--r-- | eng/common/msbuild.ps1 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/eng/common/msbuild.ps1 b/eng/common/msbuild.ps1 new file mode 100644 index 00000000000..b37fd3d5e97 --- /dev/null +++ b/eng/common/msbuild.ps1 @@ -0,0 +1,27 @@ +[CmdletBinding(PositionalBinding=$false)] +Param( + [string] $verbosity = "minimal", + [bool] $warnAsError = $true, + [bool] $nodeReuse = $true, + [switch] $ci, + [switch] $prepareMachine, + [Parameter(ValueFromRemainingArguments=$true)][String[]]$extraArgs +) + +. $PSScriptRoot\tools.ps1 + +try { + if ($ci) { + $nodeReuse = $false + } + + MSBuild @extraArgs +} +catch { + Write-Host $_ + Write-Host $_.Exception + Write-Host $_.ScriptStackTrace + ExitWithExitCode 1 +} + +ExitWithExitCode 0
\ No newline at end of file |