You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Open Visual Studio 2010
2. Generate new Project - Extensibility - Visual Studio Add-in
2.a Select "Create an Add-in using Visual C#"
2.b Check only "Microsoft Visual Studio 2010"
2.c Next
2.d Check "Yes, create a 'Tools'..." and "I would like my Add-in..."
2.e Next and Finish
3. Replace "OnConnection" function by this one (simplified):
public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom)
{
if (connectMode == ext_ConnectMode.ext_cm_UISetup)
{
Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar = ((Microsoft.VisualStudio.CommandBars.CommandBars)((DTE2)application).CommandBars)["MenuBar"];
CommandBarPopup toolsPopup = (CommandBarPopup)menuBarCommandBar.Controls.Add(MsoControlType.msoControlPopup);
toolsPopup.Caption = "NiftyBug ? - Addin";
toolsPopup.Visible = true;
}
}
4. Press F5.
What is the expected output? What do you see instead?
Expected output is visual studio 2010 with a new empty menu "NiftyBug ? -
Addin". Instead there is menu "NiftyBug ? - Addin" with all commands from Nifty
perforce (see screenshot Menu.jpg).
If you set breakpoint on line toolsPopup.Visible = true; you will see what is
on screenshot Debugger.jpg.
What version of the product are you using? On what operating system?
I'm using Nifty perforce 1.3.7 with Visual Studio 2010 in Windows 7 X64.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 31 May 2012 at 11:20
Original issue reported on code.google.com by
[email protected]
on 31 May 2012 at 11:20Attachments:
The text was updated successfully, but these errors were encountered: