Skip to content

Commit 0c4bfbd

Browse files
author
Sergey Komisarchik
committed
fix build script running on .net core 2.0 cli
1 parent 5516198 commit 0c4bfbd

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)