File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,17 @@ 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-
3431 foreach ($src in Get-ChildItem src/* ) {
3532 Push-Location $src
3633
3734 Write-Output " build: Packaging project in $src "
3835
3936 if ($suffix ) {
40- & dotnet pack - c Release -- no- build -- no- restore - o ../ ../ artifacts -- version- suffix= $suffix
37+ & dotnet publish - c Release - o ./ obj/ publish -- version- suffix= $buildSuffix / p:ContinuousIntegrationBuild= true
38+ & dotnet pack - c Release - o ../ ../ artifacts -- no- build -- version- suffix= $suffix
4139 } else {
42- & dotnet pack - c Release -- no- build -- no- restore - o ../ ../ artifacts
40+ & dotnet publish - c Release - o ./ obj/ publish / p:ContinuousIntegrationBuild= true
41+ & dotnet pack - c Release - o ../ ../ artifacts -- no- build
4342 }
4443 if ($LASTEXITCODE -ne 0 ) { throw " Packaging failed" }
4544
You can’t perform that action at this time.
0 commit comments