Project Description
New Edition of Managed Menu Extensions for Visual Studio 2010

The Main goal of "MME" is to provide easy access to adding Right Click menus in the Visual Studio Solution Explorer.

This is accomplished using MEF. All you have to do is implement a simple interface with 2 methods.

MME replaces Managed Menu Extensions

Back in 2007 I created the project Managed Menu Extensions to make it easier to create custom menu items in the Solution Explorer of Visual Studio 2008. Back then I used the brand new System.AddIn namespace also known as MAF to accomplish this goal.

Now I have upgraded this project to Visual Studio 2010. I have chosen to move it to this new site because it is re-developed from the ground up since I now use MEF instead of MAF. MEF has allowed me to make it even easier to create menu items for the solution explorer.

MAF has some advantages over MEF like better Isolation through use of different AppDomains, and an advanced versioning model. But MAF is more complex and I believe not needed for most scenarios involving right click menus. That's is why I went with MEF instead.

Features

  1. Hides Complexity. Installs a Visual Studio Add-In which works behind the scenes and uses MEF to load extensions.
  2. Ease of use. You just implement one interface, IMenuManager which contains 2 methods and place the resulting assembly in a directory.
  3. More powerful. The full DTE object is passed to the implemented IMenuManager if you need it. But you can also use the simpler model you (may) know from Managed Menu Extensions.
  4. One installer. Though I also provide a seperate Project Template on the Visual Studio Gallery.
  5. Simpel. My ambitions was to provide MenuItems for all kinds of things. Windows Explorer, SharpDevelop and others. But in this edition I focus on the prime target Visual Studio 2010.

Installing your own Menu Extension

When you have created an assembly containing one or more classes implementing IMenuManager, you have to place it in 1 of 3 locations:
  1. You can place it in the same folder as a Visual Studio Solution file (.sln). In this case the Menus will only appear when you open that solution.
  2. You can place it one folder level above one or more solution files. Then the menus will appear in all the solutions of the subfolders.
  3. You can place it in the MME subfolder of the CommonAppDataFolder (typically C:\ProgramData\MME). Then the menus appear in all solutions on the machine.


Last edited Jun 13 at 7:24 PM by Jern, version 13

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2010 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.8.10.17093