10

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.

Matze
  • 5,100
  • 6
  • 46
  • 69
adrianm
  • 14,468
  • 5
  • 55
  • 102

2 Answers2

3

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
Community
  • 1
  • 1
Matze
  • 5,100
  • 6
  • 46
  • 69
  • Thank you for your reply. My extension is added to both registry folders on build and the referenced folder contain the output. The experimental instance starts correctly on F5 and the extension is present in "extension and updates" but its menu is not added and the constructor or initialize methods are never called. – adrianm Nov 17 '14 at 10:07
  • What attributes are applied to the package class? Is there any logic within the ctor, or any field initializers which can fail? Can you add some code to your question? – Matze Nov 17 '14 at 11:13
  • Currently there is no code at all in the package class. Just empty methods. – adrianm Nov 17 '14 at 12:42
  • 3
    Have you tried the `ProvideAutoLoad` attribute? http://msdn.microsoft.com/en-us/library/bb166762.aspx – Matze Nov 17 '14 at 18:08
1

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