Repository navigation
Fix vsix version on CI builds - #7739
Merged
Merged
Conversation
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 |
jeffkl
approved these changes
Sep 26, 2026
This was referenced Sep 29, 2026
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ps1derived the VSIX version from NuGet's version (major asNuGetMajor + 11), so CI produced19.0.80000.7. That also broke local F5, since the checked-in18.99.99placeholder is now lower than what's installed.Rather than patch the formula, stop having the script rewrite
source.extension.vsixmanifestat all. The VSSDK supports|%CurrentProject%;TargetName|tokens in the manifest, so the version now comes from aGetNuGetVsixVersiontarget 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 + patchcalculation.Two behavior changes to be aware of:
+100revision offset added in Offset the 18.12 insertion prerelease version to avoid immutable-feed collisions #7728, so CI VSIX revisions shift by 100. That offset exists to avoid colliding with already-published 18.12 versions, so this seems desirable, but calling it out.VsixBuildNumberpipeline variable — nothing in this repo consumed it.PR Checklist
Added testsN/ALink to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.N/A