Skip to content

Commit 1754977

Browse files
authored
$suffix build script fix
1 parent bf40944 commit 1754977

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Build.ps1

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

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

3036
Pop-Location

0 commit comments

Comments
 (0)