Skip to content

Commit 8380d4d

Browse files
committed
Fixed a build error with the suffix
1 parent 5dbd448 commit 8380d4d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ echo "build: Version suffix is $suffix"
1818
foreach ($src in ls src/*) {
1919
Push-Location $src
2020

21-
echo "build: Packaging project in $src"
21+
echo "build: Packaging project in $src"
2222

23-
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix
24-
if($LASTEXITCODE -ne 0) { exit 1 }
23+
If ([string]::IsNullOrWhitespace($suffix)) {
24+
& dotnet pack -c Release -o ..\..\artifacts
25+
} Else {
26+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix
27+
}
28+
29+
If ($LASTEXITCODE -ne 0) { exit 1 }
2530

2631
Pop-Location
2732
}

0 commit comments

Comments
 (0)