Skip to content

Commit 7bda6f2

Browse files
authored
Merge pull request #93 from skomis-mm/ci
Fix build script running on .net core 2.0 CLI
2 parents 98dfb14 + 0c4bfbd commit 7bda6f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ foreach ($src in ls src/*) {
2020

2121
echo "build: Packaging project in $src"
2222

23-
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix
23+
if($suffix) {
24+
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix
25+
} else {
26+
& dotnet pack -c Release --include-source -o ..\..\artifacts
27+
}
28+
2429
if($LASTEXITCODE -ne 0) { exit 1 }
2530

2631
Pop-Location

0 commit comments

Comments
 (0)