Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Develop VSIX for VS2010 under VS2012?

Is there a way to develop a VSIX extension under Visual Studio 2012, which then could be installed in Visual Studio 2010? I've tried to set version range for Microsoft.VisualStudio.Pro target to [10.0,11.0], but when I launch a compiled VSIX, it offers only VS2012 to be install into.

I know it is possible to develop VSIX under VS2010, which is applicable for VS2012, though it requires to manually edit a .vsixmanifest file. But I wonder if it is possible to use newer VS2012 for developing?

like image 825
Mikhail Avatar asked Sep 19 '12 16:09

Mikhail


People also ask

What is VSIX format?

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. A VSIX package may also contain one or more Extension.

What is VSIX project?

The VSIX Project template has both Visual Basic and Visual C# versions, and is installed as part of the Visual Studio SDK. The VSIX Project template just consists of a source. extension. vsixmanifest file, which contains information about the extension and the assets it ships.


1 Answers

You can, but have to create manually the source.extension.vsixmanifest file in the 1.0 format (handled by VS2010), whereas VS2012 uses version 2.0. You will only lose the visual property editor.

You also need to make sure that you've compiled against .NET 4.0 or lower rather than .NET 4.5.

like image 112
Julien Lebosquain Avatar answered Oct 04 '22 21:10

Julien Lebosquain