Skip to content

Commit 01c8442

Browse files
authored
Merge pull request #73 from merbla/dotnet-2-build-issue
DotNet Core 2.0 Tooling/Build fix
2 parents c2f6316 + c3090fc commit 01c8442

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ foreach ($src in ls src/*) {
2525
echo "build: Packaging project in $src"
2626

2727
& dotnet build -c Release --version-suffix=$buildSuffix
28-
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
28+
if ($suffix) {
29+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
30+
} else {
31+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --no-build
32+
}
2933
if($LASTEXITCODE -ne 0) { exit 1 }
3034

3135
Pop-Location

0 commit comments

Comments
 (0)