From dcc9df88405cda54e4da442185757b3d0773d5c0 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Fri, 11 Jan 2019 14:53:23 -0800 Subject: [PATCH] Workaround arcade bug with AllowEmptySignList --- run-build.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-build.ps1 b/run-build.ps1 index 83815d7d4..07db27efd 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -8,6 +8,7 @@ param( [string]$Configuration="Debug", [string]$Architecture="x64", [switch]$Sign=$false, + [bool]$WarnAsError=$true, [Parameter(ValueFromRemainingArguments=$true)][String[]]$ExtraParameters ) @@ -18,8 +19,13 @@ $Parameters = "$Parameters -configuration $Configuration" if ($Sign) { $Parameters = "$Parameters -sign /p:SignCoreSdk=true" + + # Workaround https://github.com/dotnet/arcade/issues/1776 + $WarnAsError = $false } +$Parameters = "$Parameters -WarnAsError `$$WarnAsError" + try { $ExpressionToInvoke = "$RepoRoot\eng\common\build.ps1 -restore -build $Parameters $ExtraParameters" Write-Host "Invoking expression: $ExpressionToInvoke"