Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio AddIn: How do I Add Item Specific Commands to the Solution Explorer Context Menu

I've spent about 3 days now trying to get this working but to no avail.

I'm fairly new to VS.NET extensibility and I find it hard to debug my problems.

I've already tried the code here presented: Visual Studio Add-In - adding a context menu item to solution-explorer

Couldnt make it work. Debugged it and no exception is being thrown. Plus I'd rather use an AddIn instead of a Package.

Anyone knows:

  • How to obtain a list of all context menus in the solution explorer?
  • How to add custom command groups to a context menu?
  • How to add a custom command to one custom command group of a context menu?

Thanks in advance.

like image 558
Ricardo Camacho Avatar asked May 20 '11 14:05

Ricardo Camacho


1 Answers

This article shows how to create and display a context menu with the same look and feel than the ones of Visual Studio to be used in your own add-in user-interface.

like image 126
erikheneby Avatar answered Oct 24 '22 07:10

erikheneby