Skip to content

Commit 07fecc3

Browse files
authored
The ol' empty --version-suffix tools upgrade problem
1 parent d295247 commit 07fecc3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Build.ps1

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ 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 ($suffix) {
28+
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix --no-build
29+
} else {
30+
& dotnet pack -c Release --include-source -o ..\..\artifacts --no-build
31+
}
2832
if($LASTEXITCODE -ne 0) { exit 1 }
2933

3034
Pop-Location
@@ -41,4 +45,4 @@ foreach ($test in ls test/*.Tests) {
4145
Pop-Location
4246
}
4347

44-
Pop-Location
48+
Pop-Location

0 commit comments

Comments
 (0)