From 0c4bfbd7e8727fbaf7a849169ad27ae05c73b55c Mon Sep 17 00:00:00 2001 From: Sergey Komisarchik Date: Thu, 17 Aug 2017 08:03:57 +0300 Subject: [PATCH] fix build script running on .net core 2.0 cli --- Build.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Build.ps1 b/Build.ps1 index b5fd8b2..41fbf5d 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -20,7 +20,12 @@ foreach ($src in ls src/*) { echo "build: Packaging project in $src" - & dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix + if($suffix) { + & dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix + } else { + & dotnet pack -c Release --include-source -o ..\..\artifacts + } + if($LASTEXITCODE -ne 0) { exit 1 } Pop-Location