Workaround arcade bug with AllowEmptySignList

This commit is contained in:
Nick Guerrera 2019-01-11 14:53:23 -08:00
parent 04dd2332ff
commit dcc9df8840

View file

@ -8,6 +8,7 @@ param(
[string]$Configuration="Debug", [string]$Configuration="Debug",
[string]$Architecture="x64", [string]$Architecture="x64",
[switch]$Sign=$false, [switch]$Sign=$false,
[bool]$WarnAsError=$true,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$ExtraParameters [Parameter(ValueFromRemainingArguments=$true)][String[]]$ExtraParameters
) )
@ -18,8 +19,13 @@ $Parameters = "$Parameters -configuration $Configuration"
if ($Sign) { if ($Sign) {
$Parameters = "$Parameters -sign /p:SignCoreSdk=true" $Parameters = "$Parameters -sign /p:SignCoreSdk=true"
# Workaround https://github.com/dotnet/arcade/issues/1776
$WarnAsError = $false
} }
$Parameters = "$Parameters -WarnAsError `$$WarnAsError"
try { try {
$ExpressionToInvoke = "$RepoRoot\eng\common\build.ps1 -restore -build $Parameters $ExtraParameters" $ExpressionToInvoke = "$RepoRoot\eng\common\build.ps1 -restore -build $Parameters $ExtraParameters"
Write-Host "Invoking expression: $ExpressionToInvoke" Write-Host "Invoking expression: $ExpressionToInvoke"