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?
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.
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.
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.
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With