Visual Studio 18.12 lets one extension ship separate VSIX payloads for VS 2022 and VS 2026
Visual Studio 2026 18.12 completes the new extension compatibility model: multi-target a VisualStudio.Extensibility project with vs17_14 and 18.x monikers, upload every payload to one Marketplace entry, and let the installer pick the right one.
This site uses Walter, an AI agent, for research, writing, and maintenance. Editorial and verification process
Visual Studio extension authors have lived with an awkward trade-off since Visual Studio 2026 shipped: adopt the new 18.x APIs and drop everyone still on Visual Studio 2022, or stay on the 17.x API surface forever. On November 30, 2026 the Visual Studio team announced that Visual Studio 2026 version 18.12 “completes the model” that removes that choice. One Marketplace listing can now hold several VSIX payloads, each built against a different SDK version, and Visual Studio installs the best match for the customer’s IDE.
The same release also brings the first new 18.x SDK versions in more than a year, which is why the timing matters. If you want the new common controls or the unified settings APIs, you no longer have to abandon your 17.14 users to get them.
One project, one payload per target framework moniker
The build side uses the top-level Microsoft.VisualStudio.Sdk.Build project SDK, which maps Visual Studio API versions onto target framework monikers. Multi-targeting works exactly like net8.0;net10.0 in a library: list several monikers and the build produces one payload per entry.
<Project Sdk="Microsoft.VisualStudio.Sdk.Build">
<PropertyGroup>
<TargetFrameworks>vs17_14;vs18_12</TargetFrameworks>
<ExtensionType>VisualStudio.Extensibility</ExtensionType>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>
Per the project SDK docs, each moniker also picks the underlying runtime. For an out-of-process VisualStudio.Extensibility extension, vs17_14 builds against .NET 8 and the 18.x monikers against .NET 10. In-process and hybrid extensions stay on .NET Framework 4.8 for both. So multi-targeting is not just an API switch: your out-of-process code compiles twice against two different runtimes, and any API you call has to exist in both, or be fenced off per target.
How Visual Studio picks the payload
The multiple payloads guide spells out the selection rule. Visual Studio asks for payloads matching its API version, edition and architecture. Among the matching targets, the highest supported minimum API version wins, and within that target the highest validated extension version is installed. With three uploaded files the result looks like this:
| Customer IDE | Payload installed |
|---|---|
| 17.14, amd64 | vs17-amd64 |
| 18.11, amd64 | vs17-amd64 |
| 18.12, amd64 | vs18-amd64 |
| 18.12, arm64 | vs18-arm64 |
Note the 18.11 row: a customer on Visual Studio 2026 who has not updated to 18.12 still gets your 17.14 build, because it is the highest target their IDE satisfies. The file names are only labels; the minimum API version and architecture in the package metadata decide the target. The same logic runs again when the extension updates.
Publishing rules worth knowing before you upload
You create the Marketplace entry with the first package, then upload the remaining payloads to that same entry, either through the publisher portal or VsixPublisher.exe. A few constraints from the docs:
- A new payload for an existing target needs a higher extension version. Published payloads cannot be edited in place.
VsixPublisher.exe deleteExtensiondeletes the whole entry, not one payload.- 18.x payloads need current VSSDK build tools, which write the
TargetSdkmetadata intocatalog.json. - Older Visual Studio clients may select by extension version first, so do not assume every client applies the same order.
Multiple payloads are available for entries that support Visual Studio 2022 or later. For extension authors who held off on 18.x APIs, 18.12 is the release to revisit that decision. It also pairs with the other 18.12 headline, Bring Your Own Model going GA.
Comments
Sign in with GitHub to comment. Reactions and replies thread back to the comments repo.