Skip to content

Commit d75bea3

Browse files
authored
Use alternative build sequence to resolve publishing issue
1 parent 33d1532 commit d75bea3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)