Skip to content

Fix vsix version on CI builds - #7739

Merged
zivkan merged 2 commits into
devfrom
dev-zivkan-vsix-dev-version-bump
Sep 29, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-zivkan-vsix-dev-version-bump

Conversation

@zivkan

@zivkan zivkan commented Sep 26, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: N/A (engineering change only)

Description

#7721 changed NuGet's version from 7.12 to 8.0, but VS is still 18.x. ConfigureVstsBuild.ps1 derived the VSIX version from NuGet's version (major as NuGetMajor + 11), so CI produced 19.0.80000.7. That also broke local F5, since the checked-in 18.99.99 placeholder is now lower than what's installed.

Rather than patch the formula, stop having the script rewrite source.extension.vsixmanifest at all. The VSSDK supports |%CurrentProject%;TargetName| tokens in the manifest, so the version now comes from a GetNuGetVsixVersion target in the project. This means that build/config.props is the source of truth, and we no longer have this additional logic that can get out of sync.

Previously, say CI was building build number 123 of 8.1.2, it would set the VSIX number to 19.0.80102.123 (although it was intended for the major version to stay 18, not 19). This PR changes the vsix version to 18.13.2.123. So, use VS's major and minor version, rather than use the major*10000 + minor*100 + patch calculation.

Two behavior changes to be aware of:

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests N/A
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner September 26, 2026 00:21
@zivkan

zivkan commented Sep 26, 2026

Copy link
Copy Markdown
Member Author

I've reached out to the VS setup team, to make sure this won't cause VS update failures for internal people who have already installed NuGet vsix version 19.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants