Skip to content

Commit 0c6b675

Browse files
authored
$suffix build script fix
1 parent 9014939 commit 0c6b675

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Build.ps1

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

21-
echo "build: Packaging project in $src"
22-
23-
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix --include-source
21+
echo "build: Packaging project in $src"
22+
23+
if ($suffix) {
24+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix --include-source
25+
} else {
26+
& dotnet pack -c Release -o ..\..\artifacts --include-source
27+
}
28+
2429
if($LASTEXITCODE -ne 0) { exit 1 }
2530

2631
Pop-Location
@@ -29,7 +34,7 @@ foreach ($src in ls src/*) {
2934
foreach ($test in ls test/*.PerformanceTests) {
3035
Push-Location $test
3136

32-
echo "build: Building performance test project in $test"
37+
echo "build: Building performance test project in $test"
3338

3439
& dotnet build -c Release
3540
if($LASTEXITCODE -ne 0) { exit 2 }
@@ -40,7 +45,7 @@ foreach ($test in ls test/*.PerformanceTests) {
4045
foreach ($test in ls test/*.Tests) {
4146
Push-Location $test
4247

43-
echo "build: Testing project in $test"
48+
echo "build: Testing project in $test"
4449

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

0 commit comments

Comments
 (0)