Skip to content

Commit f052eec

Browse files
committed
devops: fixing build issue when no suffix is present
1 parent fcb4d97 commit f052eec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build/build-extensions.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ function BuildRuntime([string] $targetRid, [bool] $isSelfContained) {
4343
$publishTarget = "$publishTarget.self-contained"
4444
$symbolsTarget = "$symbolsTarget.self-contained"
4545
}
46-
47-
$cmd = "publish", ".\src\WebJobs.Script.WebHost\WebJobs.Script.WebHost.csproj", "-r", "$targetRid", "--self-contained", "$isSelfContained", "/p:PublishReadyToRun=true", "/p:PublishReadyToRunEmitSymbols=true", "-o", "$publishTarget", "-v", "m", "/p:BuildNumber=$buildNumber", "/p:IsPackable=false", "/p:VersionSuffix=$suffix", "-c", "Release"
46+
47+
$suffixCmd = ""
48+
if ($hasSuffix) {
49+
$suffixCmd = "/p:VersionSuffix=$suffix"
50+
}
51+
52+
$cmd = "publish", ".\src\WebJobs.Script.WebHost\WebJobs.Script.WebHost.csproj", "-r", "$targetRid", "--self-contained", "$isSelfContained", "/p:PublishReadyToRun=true", "/p:PublishReadyToRunEmitSymbols=true", "-o", "$publishTarget", "-v", "m", "/p:BuildNumber=$buildNumber", "/p:IsPackable=false", "-c", "Release", $suffixCmd
4853

4954
Write-Host "======================================"
5055
Write-Host "Building $targetRid"

0 commit comments

Comments
 (0)