I think what I'm trying to do should be fairly simple, but... I want to add my own command to the "Add" submenu for projects. I want this to work exactly like the "Class...", "Window..." "Page..." and similar commands to shortcut the dialog for choosing what type of item to add to the project.
I created a new Package with VS2012 (with SDK), chose C# as the language, selected the option to add a menu command and accepted all of the defaults. When I run it, it fires up an experimental instance of VS2012 with the new command on the Tools menu. Almost there! After a bunch of research, it seemed all I had to do was change the parent menu in the .VSCT file from this:
<Groups><Group guid="guidVSPackage2CmdSet" id="MyMenuGroup" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>
</Group></Groups>
To this:
<Groups><Group guid="guidVSPackage2CmdSet" id="MyMenuGroup" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDG_VS_CTXT_PROJECT_ADD"/></Group></Groups>
I uninstalled the package in the experimental instance, shut it down, cleaned the package project, rebuilt all and ran it again. When the experimental instance came up, the command on the Tools menu was gone, but the command doesn't show up anywhere now. Any ideas? I've been banging my head against this one for a couple of days now and I think Google and Bing are getting tired of me asking about it <g>.
Thanks!
Mike
Mike Yeager