Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make my VSIX file compatible with both VS11 and VS2010?

How can I make my VSIX file compatible with both Visual Studio 11 and Visual Studio 2010? I'm handing my VSIX file along with all its dependencies to a friend of mine, and when he opens it, he's getting the error "The extension manifest is invalid".

When I open it on my machine (the same machine that built the extension) it works just fine.

What do I do here?

like image 235
Mathias Lykkegaard Lorenzen Avatar asked Apr 23 '12 12:04

Mathias Lykkegaard Lorenzen


People also ask

What software opens VSIX files?

Visual Studio extensions can be installed using the Extension Manager UI within the software. NOTE: You can use the Visual Studio 2010 SDK to create VSIX extensions.

What format is VSIX?

A VSIX package is a . vsix file that contains one or more Visual Studio extensions, together with the metadata Visual Studio uses to classify and install the extensions. That metadata is contained in the VSIX manifest and the [Content_Types]. xml file.

How do I open a VSIX installer File?

Steps: Open Developer Command Prompt for Visual Studio > type cd XXXX (replace XXXX with the path for example, for VS 2019 Community, C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE ) > press Enter > type VSIXInstaller.exe > press Enter > check if the extension has been installed.


1 Answers

You need to build your extension using VS 2010 and the VS 2010 SDK to support both VS10 and VS11. In your VSIXManifest, you should add the following under <SupportedProducts>:

<VisualStudio Version="11.0">
  <Edition>Pro</Edition>
</VisualStudio>
like image 153
Aaron Marten Avatar answered Sep 19 '22 17:09

Aaron Marten