Can I add my add-in into "analyze" section of Visual Studio menu?

160 Views Asked by At

Visual Studio main window top menu contains "Analyze" item that upon expansion shows items such as "profiler", "run code analysis", etc. If I want to add my add-in command invokation into any Visual Studio menu I need to craft a command table (.vsct file) and declare that my command belongs to a specific section by specifying its id.

The problem is MSDN only lists menu IDs for sections other than "analyze" - "analyze" section is never mentioned.

Is adding my add-in to "analyze" section allowed?

1

There are 1 best solutions below

1
On

You'll need this in the <Symbols> portion of your .vsct:

<GuidSymbol name="guidDiagMenuGroup" value="{CD68F8E6-2842-4F7E-AF7B-5A019631CEB5}">
  <IDSymbol name="IDM_DIAG_TOPLEVELMENU" value="0x0001"/>
</GuidSymbol>

Then your parent for your group should be:

<Parent guid="guidDiagMenuGroup" id="IDM_DIAG_TOPLEVELMENU"/>