From 07da5031e6dfd38a3af5d2b802310100e5128f24 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 10 May 2021 16:16:09 +0200 Subject: [PATCH] Update package.ps1 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update package.ps1 * Update eng/package.ps1 Co-authored-by: Javier Suárez Co-authored-by: Rui Marinho Co-authored-by: Javier Suárez --- eng/package.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/package.ps1 b/eng/package.ps1 index 95b9ccc33..b46dcd960 100644 --- a/eng/package.ps1 +++ b/eng/package.ps1 @@ -58,6 +58,7 @@ if ($IsWindows) /t:build ` /p:Packing=true ` /bl:"$artifacts/maui-build-$configuration.binlog" + if (!$?) { throw "Build failed." } & $msbuild $sln ` /p:configuration=$configuration ` @@ -65,6 +66,7 @@ if ($IsWindows) /t:pack ` /p:Packing=true ` /bl:"$artifacts/maui-pack-$configuration.binlog" + if (!$?) { throw "Pack failed." } } finally { @@ -86,4 +88,5 @@ else -c:$configuration ` -p:SymbolPackageFormat=snupkg ` -bl:$artifacts/maui-pack-$configuration.binlog + if (!$?) { throw "Pack failed." } }