diff --git a/Build.ps1 b/Build.ps1 index b5fd8b2..41fbf5d 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -20,7 +20,12 @@ foreach ($src in ls src/*) { echo "build: Packaging project in $src" - & dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix + if($suffix) { + & dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix + } else { + & dotnet pack -c Release --include-source -o ..\..\artifacts + } + if($LASTEXITCODE -ne 0) { exit 1 } Pop-Location