File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,15 +28,18 @@ try {
2828 Write-Output " build: Package version suffix is $suffix "
2929 Write-Output " build: Build version suffix is $buildSuffix "
3030
31+ & dotnet build - c Release -- version- suffix= $buildSuffix / p:ContinuousIntegrationBuild= true
32+ if ($LASTEXITCODE -ne 0 ) { throw " Build failed" }
33+
3134 foreach ($src in Get-ChildItem src/* ) {
3235 Push-Location $src
3336
3437 Write-Output " build: Packaging project in $src "
3538
3639 if ($suffix ) {
37- & dotnet pack - c Release - o ../ ../ artifacts -- version- suffix= $suffix
40+ & dotnet pack - c Release -- no - build -- no - restore - o ../ ../ artifacts -- version- suffix= $suffix
3841 } else {
39- & dotnet pack - c Release - o ../ ../ artifacts
42+ & dotnet pack - c Release -- no - build -- no - restore - o ../ ../ artifacts
4043 }
4144 if ($LASTEXITCODE -ne 0 ) { throw " Packaging failed" }
4245
You can’t perform that action at this time.
0 commit comments