getting my menu item to show up in the context menu when right click inside the code view
I somehow deleted support for showing the add in inside the context menu that appears when I right click on the code window.
Does anyone know who to set this back up so the users see it there by defaul.
Thanks,
Nick
Hi Nick,
I suspect you're dealing with VS 2005 and a managed add-in here. Try invoking DevEnv.exe with the /resetaddin switch.
Otherwise, you'll need to reset the add-ins CommandPreload registry value to 1, so that the add-ins OnConnection is invoked with that ext_cm_UISetup value (which is typically the only time named commands are added to the IDE).
Sincerely,
Well actually its not an internal issue with the shortcut item showing, because I can create another add in project and it shows up just fine.
In my project I deleted the shortcut xml file in to the solution explorer window.
How do I create another shortcut xml file. I tried copying the xml file and that didn't work?
Any suggestions?
There should be two .addin files in your solution, one in the folder of the solution and other in the Visual Studio 2005\AddIns folder. The Solution explorer shows the former and a shortcut to the later. Deleting the shortcut wouldn't break your add-in, so I am not sure what's going on here. Anyway, you can create a shortcut using the Add Existing File dialog and in the dropdown button select "Add As Link" rather than "Add".
Also, please clarify if your problem is that the add-in does not load, as it seems in your post, or it does load but the menu does not appear, as it seems in your title post, because the answers are different. Anyway see:
HOWTO: Troubleshooting Visual Studio and Office add-ins
http://www.mztools.com/resources_vsnet_addins.htm