Add more robust error handling to all the sample build scripts

This commit is contained in:
Caelan Sayler
2025-06-27 10:35:42 +01:00
committed by Caelan
parent 72af62649f
commit 4ba75beea8
15 changed files with 49 additions and 8 deletions

View File

@@ -12,7 +12,9 @@ set "version=%~1"
echo.
echo Compiling VelopackCSharpWpf with dotnet...
dotnet publish -c Release -o %~dp0publish
if errorlevel 1 exit /b 1
echo.
echo Building Velopack Release v%version%
vpk pack -u VelopackCSharpWpf -v %version% -o %~dp0releases -p %~dp0publish -f net8-x64-desktop
vpk pack -u VelopackCSharpWpf -v %version% -o %~dp0releases -p %~dp0publish -f net8-x64-desktop
if errorlevel 1 exit /b 1