From c5458b789cda75af4f1782468b80162f9b24276b Mon Sep 17 00:00:00 2001
From: Rob Mensching <rob@firegiant.com>
Date: Sat, 27 Jun 2020 13:20:28 -0700
Subject: Improve build batch file

---
 appveyor.cmd | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

(limited to 'appveyor.cmd')

diff --git a/appveyor.cmd b/appveyor.cmd
index 8a48fe2b..edd0a534 100644
--- a/appveyor.cmd
+++ b/appveyor.cmd
@@ -1,16 +1,17 @@
 @setlocal
 @pushd %~dp0
 
-nuget restore
+nuget restore || exit /b
 
-msbuild -p:Configuration=Release -t:Restore
+msbuild -p:Configuration=Release -t:Restore || exit /b
 
-msbuild -p:Configuration=Release -p:Platform=Win32 src\ca\complusca.vcxproj
-msbuild -p:Configuration=Release -p:Platform=x64 src\ca\complusca.vcxproj
+msbuild -p:Configuration=Release -p:Platform=Win32 src\ca\complusca.vcxproj || exit /b
+msbuild -p:Configuration=Release -p:Platform=x64 src\ca\complusca.vcxproj || exit /b
 
-msbuild -p:Configuration=Release src\test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj
+msbuild -p:Configuration=Release src\test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj || exit /b
+dotnet test -c Release --no-build src\test\WixToolsetTest.ComPlus || exit /b
 
-msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.ComPlus.wixext.csproj
+msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.ComPlus.wixext.csproj || exit /b
 
 @popd
 @endlocal
\ No newline at end of file
-- 
cgit v1.2.3-55-g6feb