Nikolay
Nikolay

Reputation: 12245

How to fix "The extension is incompatible with the targeted version of Visual Studio" (vs 2022)

I am trying to update my published Visual Studio extension to the 2022 version, this one

The problem is: I keep getting (when attempting to update on the marketplace).

The extension is incompatible with the targeted version of Visual Studio. More info at https://aka.ms/ExtensionSdkErrors

Locally, the extension installs and runs fine (on 2022 as well), this version that can be downloaded from the "GitHub releases", and there are no blocking messages when building it as well from the analyzers.

The link in the error message says that the extension should be using the latest version of the VisualStudio.Sdk (version 17). The thing is, it does!

Any suggestion what I could look at to make the submission succeed?

Extension has two bundled child project templates inside, and one template wizard (in addition to the SDK it has a reference to Microsoft.VisualStudio.TeamplateInterface v.17), because SDK does not seem to have this package bundled.

Full source code: https://github.com/nbelyh/VisioPanelAddinVSTO/tree/vs2022

Upvotes: 0

Views: 1116

Answers (1)

Ankit Varma
Ankit Varma

Reputation: 1

Many interop assemblies were embeddable prior to Visual Studio 2022. Beginning in Visual Studio 2022, embedding is no longer required or supported.

try removing the references from the project file https://github.com/nbelyh/VisioPanelAddinVSTO/blob/master/Wizard/PanelAddinWizard.csproj

  • envdte
  • EnvDTE80
  • Microsoft.VisualStudio.OLE.Interop
  • Microsoft.VisualStudio.Shell.Interop

and use the Microsoft.VisualStudio.Interop

You can refer following list: https://learn.microsoft.com/en-us/visualstudio/extensibility/migration/migrated-assemblies?view=vs-2022

For more details: https://learn.microsoft.com/en-us/visualstudio/extensibility/migration/update-visual-studio-extension?view=vs-2022

Upvotes: 0

Related Questions