Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug VSIX extension in VS which is of other version then version of VS SDK being used

I have a solution with my Visual Studio extension. This extension should work in any VS version since VS2010. That's because I use VS 2010 SDK. I made hacks to bind my projects to VS2010 SDK assemblies and targets to work without SDK installed - thanks to this detailed guide by Aaron Marten. I can successfully build vsix of my extension and install it in any VS. Nice.

But I also want to debug my extension with F5. I want to do it not in VS2010 but in some other VS - VS 2015 in my case. I even have VS 2015 SDK installed. But it doesn't work obviously. As targets from VS2010 SDK supposed to deploy extension being built into VS2010 experimental instance.

So the question is:
how to setup project to debug a vsix extension in VS2015 with F5 if the extension itself uses VS2010 SDK?

Probably I need to use some targets/tasks from VS2015 SDK but which ones and how?

like image 848
Shrike Avatar asked Feb 02 '16 15:02

Shrike


People also ask

How do I import VSIX files into Visual Studio?

vsix files may be available in locations other than Visual Studio Marketplace. The Extensions > Manage Extensions dialog box can't detect these files, but you can install a . vsix file by double-clicking the file or selecting the file and pressing Enter. After that, just follow the instructions.

Where can I find VSIX files?

Installation location During installation, Extensions and Updates looks for the contents of the VSIX package in a folder under %LocalAppData%\Microsoft\VisualStudio\14.0\Extensions.

How do I open a VSIX 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

Step by step description of how to achieve this is available in the Commit history here: https://github.com/jaredpar/RoundTripVSIX/commits/master (I used it successfully in my VS extension "SQL Server Compact Toolbox")

like image 139
ErikEJ Avatar answered Oct 05 '22 23:10

ErikEJ