Adding context menu for VS 2010 Add-In on loading - visual-studio-2010

I'm creating an Add-In for Visual Studio 2010.
I want to add the context menu item to the tab during Add-In loading
(in OnConnect method of the Add-In):
I do know how to add the menus using CommandBars.
I already added commands into "Tools" and "Solution Explorer" menus.
I just cannot find the CommandBar responsible for the menu, I need.
Can anybody help me?

Solution found.
You can enable logging of chosen menus.
Details:
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-enablevsiplogging-to-identify-menus-and-commands-with-vs-2005-sp1.aspx
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-ivsproffercommands-to-retrieve-a-visual-studio-commandbar.aspx

Related

"Select Startup Item" command / drop-down not showing on Standard toolbar in Visual Studio

Up until recently I could select the startup project (equivalent to right-clicking on the project in the solution explorer and choosing "Set as Startup Project") from the Standard toolbar with the "Select Startup Item" drop-down. Now it's gone, yet the item is still checked under "Add or Remove Buttons".
The closest reference I could find is this, but the solution doesn't match my situation because I have more than one project and this is happening no matter which solution is loaded.
Please help me figure out what is going on.
I had a similar issue where the start menu item (called "Debug Target") was completely gone. Toggling the menu item on and off did not resolve the issue. I selected "Reset Toolbar" at the bottom of the menu and that resolved the problem for me. May require some manual set up after if your menu is heavily customized. But if you use the Standard layout it shouldn't be an issue.
I had the same problem. The "Startup Projects" drop-down disappeared occasionally. It was probably caused by installing/uninstallin/updating VS extensions.
The solution was easy. Install free extension Clear MEF Component Cache. Then simply click the Clear MEF Component Cache in the Tools menu. The toolbar should be repaired after restating Visual Studio.
This solution does NOT reset any of your UI customizations.
Open the "Add or Remove Buttons" dropdown in the section with the "Start" button, deselect "Startup Projects" and close all Visual Studio windows. Open a new instance of Visual Studio and re-enable "Startup Projects." It should show up for you then.

How can I add an addin in visual studio 2008 by menu item

I want to write some addin in vs2008 to help me do some repetitive work. And I want to see my addin in the menu item when I right click my class name in editor. And who can tell me hwo to add my addin in the menu.
Thanks
See Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in for detailed explanation. Basically you need to call Commands.AddNamedCommand to create your command and then call myCommand.AddControl(CommandBars["Code Window"]).

Create resource using Visual Studio 2010?

I'm attempting to create a resource in Visual Studio 2010 which I will use to create a custom dialog box. Microsoft gives these steps:
http://msdn.microsoft.com/en-us/library/sxdy04be.aspx
However there is no "Resource File" option in the Add New item dialog. There is, however, an "Add Resource..." menu item in the Project menu. However, this item is dimmed out. Why is it dimmed out? How can I get it to be available?

Extending VisualStudio

I want to extend Visual Studio such that, when someone right clicks on Solution Explorer, context menu should have a new menu item, say "Open custom form", clicking which should open a form (this form would actually accept some settings and modify config file accordingly)
Q1. Please provide on where should I start for such extension. Couldn't find any reference/tutorial link :(
Q2. What technology can be used to make such a form - Winforms/WPF?
Either Windows Forms or WPF should be fine.
SO: Visual Studio Add-In - adding a context menu item to solution-explorer
Google Code: explorer-popup-add-in
There's a lot of docs on Visual Studio integration here

How to access selected project in Solution Explorer from a Visual Studio Add-In?

I developed a VS 2008 add-in and added a custom menu item to context menu for "Project" nodes in Solution Explorer.
This allows me to right-click any project in solution and perform a custom operation on that project. Or at least, it would, if I knew how to access the selected project from my Click event handler.
Can someone with more experience please help me?
I think what you're looking for is DTE.ActiveSolutionProjects.

Resources