Skip to content

Commit eea1018

Browse files
authored
Merge pull request #56 from nblumhardt/build-script-fix
Don't specify --version-suffix for dotnet pack when the suffix is empty
2 parents 4e6e825 + e80de4c commit eea1018

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Build.ps1

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ foreach ($src in ls src/*) {
2424
echo "build: Packaging project in $src"
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
27-
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
27+
if($LASTEXITCODE -ne 0) { exit 1 }
28+
29+
if ($suffix) {
30+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
31+
} else {
32+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --no-build
33+
}
2834
if($LASTEXITCODE -ne 0) { exit 1 }
2935

3036
Pop-Location

0 commit comments

Comments
 (0)