Skip to content

Commit 9243709

Browse files
authored
--version-suffix fix
1 parent 2cd5760 commit 9243709

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Build.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ 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
23+
if ($suffix) {
24+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix
25+
} else {
26+
& dotnet pack -c Release -o ..\..\artifacts
27+
}
2428
if($LASTEXITCODE -ne 0) { exit 1 }
2529

2630
Pop-Location
@@ -29,7 +33,7 @@ foreach ($src in ls src/*) {
2933
foreach ($test in ls test/*.PerformanceTests) {
3034
Push-Location $test
3135

32-
echo "build: Building performance test project in $test"
36+
echo "build: Building performance test project in $test"
3337

3438
& dotnet build -c Release
3539
if($LASTEXITCODE -ne 0) { exit 2 }
@@ -40,7 +44,7 @@ foreach ($test in ls test/*.PerformanceTests) {
4044
foreach ($test in ls test/*.Tests) {
4145
Push-Location $test
4246

43-
echo "build: Testing project in $test"
47+
echo "build: Testing project in $test"
4448

4549
& dotnet test -c Release
4650
if($LASTEXITCODE -ne 0) { exit 3 }

0 commit comments

Comments
 (0)