Conflict with own add-in

Sep 27, 2011 at 10:01 AM

Hi, I created an add-in for VS2010 which adds command bars to the project context menu. When I installed the resharpers settings manager plugin, my add-in stopped working. The command bars are still there but when i click on them nothing happens. Once i remove the settings manager everything starts working again.

Code example for adding command bar:

...
CommandBars commandBars = (CommandBars)_applicationObject.CommandBars;
CommandBar commandBar = commandBars["Item"];
...
CommandBarButton rfButton = (CommandBarButton)commandBar.Controls.Add(MsoControlType.msoControlButton, Type.Missing, Type.Missing, position, Type.Missing);
rfButton.Caption = "Test";
rfButton.TooltipText = "Test";
rfButton.Click += new _CommandBarButtonEvents_ClickEventHandler(MenuClick);
...

Any idea how to resolve this problem?

Thanks