Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit 1e82e26

Browse files
authored
Fix version suffixing
1 parent 7291210 commit 1e82e26

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+
28+
if ($suffix) {
29+
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix --no-build
30+
} else {
31+
& dotnet pack -c Release --include-source -o ..\..\artifacts --no-build
32+
}
33+
2834
if($LASTEXITCODE -ne 0) { exit 1 }
2935

3036
Pop-Location

0 commit comments

Comments
 (0)