Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update your incompatible VS2022 extension #179

Open
tinaschrepfer opened this issue Nov 17, 2021 · 1 comment
Open

Please update your incompatible VS2022 extension #179

tinaschrepfer opened this issue Nov 17, 2021 · 1 comment
Milestone

Comments

@tinaschrepfer
Copy link

This is Tina from the Visual Studio Extensibility team. I’m reaching out to you because we’ve received the following, high-priority feedback ticket for VS 2022: Visual Studio Feedback

We determined that this issue is the result of extension(s) not being updated to Visual Studio 2022 properly due to marking VS 2022 as compatible in the VSIX manifest but not referencing the new SDK PIA (Microsoft.VisualStudio.Interop.dll) and dependencies. We’ve identified that one of your extensions contributes to this issue:

• Codist Navbar

We strongly recommend that you update and re-publish your VSIX with the new VS 2022-compatible references, including EnvDTE.

Our investigation of the existing issue is that this happens when VS 2015 and VS 2022 are installed side by side, which is why it only occurred for a subset of customers. Nevertheless, referencing older versions of VSSDK assemblies is not supported, especially for the APIs and types that we’ve listed as breaking or altered. If you are doing so and find that your extensions work today, we make no guarantees that they will continue to work in the future. Extension authors could also find themselves in a situation where their extensions negatively impacts users due to untested workflows. From the product team’s perspective, we do not promise support to extension authors who do not follow our recommendation, and reference older versions of VSSDK. We also reserve the right to mark these extensions as incompatible should we find that VS is negatively affected by them. For the time being, instead of making VSIXValidator hard block any extensions that reference older assemblies, we will do a soft block and warn extension owners. And since this particular scenario is niche enough that it only affects side by side installs, we will not be marking them as incompatible, yet.

We will be pushing out changes in the coming months to warn both extension authors as well as extension consumers if they are creating or using an extension that are built with older versions of the VSSDK. We will share more details about this in the future.

Q: How can I validate whether my extension has dependencies on the old PIAs assembly?
A: You can try to validate the extension’s reference by following the steps below

  1. Open the Developer command prompt.
  2. Run the command ildasm as below.
    o C:>ildasm /text "{Extension Assembly}.dll" /output:result.txt
  3. Check for references in the result.txt file.

For more info on how to migrate your extension to VS 2022 successfully, please view the following resources:
Update Your Visual Studio Extension
Breaking API List
Migrated PIA List

Please let us know if you have any questions. You can reach us on the VSExtensibility GitHub repo: https://github.com/microsoft/VSExtensibility

@wmjordan wmjordan added this to the Backlog milestone Dec 6, 2021
@wmjordan
Copy link
Owner

wmjordan commented Jan 8, 2022

This version does not install on VS 2015. However, if some users have both VS 2015 and VS 2022 installed, it can cause some problem...
Is there a way to have it run on VS 2022 and older versions without releasing two VSIXes?

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

No branches or pull requests

2 participants