Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio extension does not load in experimental instance

I'm developing a Visual Studio extension in VS2013 but I can get it to load in the experimental instance.

I can install it manually in my current instance (from the vsix file) and it works fine but I am unable to debug it.

There are no error messages nor anything in the ActivityLog. My extension just isn't loaded. (It is not just my extension. The same thing happens with a fresh extension from the project template)

I have tried to delete/reset the experimental instance without luck.

I also tried to debug my extension by creating the experimental instance from my current instance with my extension installed. The extension then showed up as "Disabled" in "Extensions and updates" in the experimental instance.

Tried to search for how the extension registration is performed in the experimental instance but could not find anything. Only found refrences to the setting "Deploy VSIX content to experimental instance for debugging" but not anything about what the setting does.

Currently my testing work liks this:

  1. Put in MessageBox and/or WriteLine and compile the code
  2. Remove the previous instance of the extension in "Extensions and updates"
  3. Close Visual Studio
  4. Install the extension from the vsix file
  5. Start Visual Studio
  6. Test the extension

which of course takes a long time.

like image 293
adrianm Avatar asked Nov 16 '14 20:11

adrianm


People also ask

What is Visual Studio experimental instance?

To safeguard your Visual Studio development environment from untested applications that might change it, the VSSDK provides an experimental space that you can use to experiment. You develop new applications by using Visual Studio as usual, but you run them by using this experimental instance.


2 Answers

This is probably a duplicate question. Just check the Debug options of your VSIX project. This answer might help: Cannot run VSPackage when developing on multiple machines

If the automatic registration of your extension works, you should find entries with your package-id in the registry under the following keys:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0Exp\ExtensionManager\
    EnabledExtensions
    ExtensionTypes
like image 146
Matze Avatar answered Oct 22 '22 17:10

Matze


You need to enable the installed extension from Extension manager. It'd ask for a IDE restart, and it should be all set up

like image 22
Manjeet Singh Avatar answered Oct 22 '22 16:10

Manjeet Singh