Skip to content

Commit f0aafe1

Browse files
authored
Don't specify suffix when building main
1 parent db2077a commit f0aafe1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ $suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch
2525

2626
Write-Output "build: Package version suffix is $suffix"
2727

28-
& dotnet build -c Release --version-suffix=$suffix /p:ContinuousIntegrationBuild=true
28+
if ($suffix) {
29+
& dotnet build -c Release --version-suffix=$suffix /p:ContinuousIntegrationBuild=true
30+
} else {
31+
& dotnet build -c Release /p:ContinuousIntegrationBuild=true
32+
}
33+
2934
if($LASTEXITCODE -ne 0) { throw "Build failed" }
3035

3136
foreach ($src in Get-ChildItem src/*) {

0 commit comments

Comments
 (0)