From 0087b74efc73eeffbbff5602838f4e6db8ec6f16 Mon Sep 17 00:00:00 2001 From: g2vinay Date: Thu, 9 Apr 2026 15:40:06 -0700 Subject: [PATCH 1/2] fix new buind info --- eng/scripts/New-BuildInfo.ps1 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/eng/scripts/New-BuildInfo.ps1 b/eng/scripts/New-BuildInfo.ps1 index 1b1bce7546..396fb0351f 100644 --- a/eng/scripts/New-BuildInfo.ps1 +++ b/eng/scripts/New-BuildInfo.ps1 @@ -117,9 +117,9 @@ function Get-LatestMarketplaceVersion { ) } ) - # flags 914 = IncludeVersions | IncludeFiles | IncludeAssetUri | IncludeStatistics - # This requests version information needed to determine the latest published version - flags = 914 + # flags 387 = IncludeVersions (0x1) | IncludeFiles (0x2) | IncludeAssetUri (0x80) | IncludeStatistics (0x100) + # IncludeVersions (0x1) is required to retrieve all published versions, not just the latest. + flags = 387 } | ConvertTo-Json -Depth 10 $response = Invoke-RestMethod -Uri $marketplaceUrl -Method Post -Body $body -ContentType "application/json" -ErrorAction SilentlyContinue @@ -430,12 +430,12 @@ function Get-ServerDetails { Write-Host "Marketplace latest: $($marketplaceInfo.LatestVersion) -> Next VSIX version: $vsixVersion" -ForegroundColor Green } else { - # No matching versions found - this is an illegal state for non-beta releases - LogError "Cannot determine VSIX version for $serverName $($version.ToString()). No marketplace versions found for $($version.Major).0.X series." - LogError "For non-beta releases, the VSIX version must be calculated from existing marketplace versions." - LogError "If this is the first release for major version $($version.Major), use a beta version (e.g., $($version.Major).0.0-beta.1) instead." - $script:exitCode = 1 - continue + # No matching versions found in the marketplace for this major version series. + # This is expected for the first GA release of a new major version (e.g., 2.0.0) + # when no prior beta was published to the marketplace. Bootstrap from patch 0. + $vsixVersion = "$($version.Major).0.0" + $vsixIsPrerelease = $false + Write-Host "No marketplace versions found for $($version.Major).0.X series. Bootstrapping first release with VSIX version: $vsixVersion" -ForegroundColor Yellow } } else { From 3792b79a172c65e5a1f9eb936a956fbd896f6d4e Mon Sep 17 00:00:00 2001 From: g2vinay Date: Thu, 9 Apr 2026 15:57:20 -0700 Subject: [PATCH 2/2] fix the script --- eng/scripts/New-BuildInfo.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/scripts/New-BuildInfo.ps1 b/eng/scripts/New-BuildInfo.ps1 index 396fb0351f..a529ca66ee 100644 --- a/eng/scripts/New-BuildInfo.ps1 +++ b/eng/scripts/New-BuildInfo.ps1 @@ -430,12 +430,12 @@ function Get-ServerDetails { Write-Host "Marketplace latest: $($marketplaceInfo.LatestVersion) -> Next VSIX version: $vsixVersion" -ForegroundColor Green } else { - # No matching versions found in the marketplace for this major version series. - # This is expected for the first GA release of a new major version (e.g., 2.0.0) - # when no prior beta was published to the marketplace. Bootstrap from patch 0. - $vsixVersion = "$($version.Major).0.0" - $vsixIsPrerelease = $false - Write-Host "No marketplace versions found for $($version.Major).0.X series. Bootstrapping first release with VSIX version: $vsixVersion" -ForegroundColor Yellow + # No matching versions found - this is an illegal state for non-beta releases + LogError "Cannot determine VSIX version for $serverName $($version.ToString()). No marketplace versions found for $($version.Major).0.X series." + LogError "For non-beta releases, the VSIX version must be calculated from existing marketplace versions." + LogError "If this is the first release for major version $($version.Major), use a beta version (e.g., $($version.Major).0.0-beta.1) instead." + $script:exitCode = 1 + continue } } else {