Add a Visual Studio 2022-targeted VSIX project and a package/assembly remapping table.Refactor your source code into a shared project to allow for targeting Visual Studio 2022 and older versions.
Learn how to migrate your extensions for earlier Visual Studio versions to Visual Studio 2022: Visual Studio 2022 will not load any extension that targets an earlier version of Visual Studio. Extensions with running codeĮxtensions with running code must be compiled specifically for Visual Studio 2022. The Visual Studio SDK for extensions compiled with C++ is available with the installed Visual Studio SDK, as usual.Įven if you don't reference any breaking changes, extensions must be compiled specifically against the Visual Studio 2022 SDK and for AMD64. The x86 platform is incompatible with the 64-bit process in Visual Studio 2022. The (17.x versions) package should be referenced from your VSIX project so it can build a Visual Studio 2022-compliant VSIX.Įven if you don't reference any breaking changes, extensions must be compiled with the Any CPU or 圆4 platform.The (17.x versions) metapackage brings in most or all of the reference assemblies that you'll need.The Visual Studio SDK that targets Visual Studio 2022 for managed extensions is exclusively on NuGet:
Install Visual Studio 2022 from Visual Studio 2022 downloads. Install Visual Studio and compile extensions Your extension can then be ready for users to install before Visual Studio 2022 reaches general availability.
This article walks you through the steps required to get your extension working with the current preview of Visual Studio 2022.
Visual Studio 2022 is a 64-bit application and introduces some breaking changes in the Visual Studio SDK. Try your extension in Visual Studio 2022 and evaluate what option is best for your extension.
Many extensions will work in both Visual Studio 2019 and Visual Studio 2022 with minor changes that won't require following the advice on modernizing your extension in this article. In those cases, we recommend that you have two VSIX projects and conditional compilation. The advice in this article can guide developers in migrating extensions that require major changes to work in both Visual Studio 2019 and Visual Studio 2022.