Visual studio 2019 package menu

Category: visual studio extensibility

Question

vlh7 on Wed, 28 Aug 2019 19:33:00


Dear experts,

I have a Visual studio package targeting VS2015 and up. The package has a menu that is supposed to show on the top level. The topmost menu item is declared in VSCT file like this:

      <Menu guid="guidPackageCmdSet" id="MainMenu" priority="700">
        <Parent guid="guidSHLMainMenu" id="IDG_VS_MM_TOOLSADDINS" />
        <Strings>
          <ButtonText>&amp;Main Menu</ButtonText>
        </Strings>
      </Menu>

As you can see, the parent item has guid guidSHLMainMenu and id IDG_VS_MM_TOOLSADDINS.

In VS2015 and VS2017 this menu item appears in the top level menu before "Tools". But in VS2019 this menu shows up as the "Extensions" submenu. I have two questions:

1. Why identically defined menu items show up in different locations in VS 2017 and VS2019?

2. Is there any way to make an extension menu part of the VS top level menu?

Best regards,

Victor.

Replies

Sergey Vlasov on Thu, 29 Aug 2019 04:16:54


This is by VS 2019 design: https://developercommunity.visualstudio.com/idea/435711/get-rid-of-new-extensions-menu.html

Sergey Vlasov | Vlasov Studio | Innovative Visual Studio extensions and tools


Dylan Zhu-MSFT on Thu, 29 Aug 2019 08:42:05


Hi vlh7,

Welcome to MSDN forum.

As Sergey says, it is by design, and you could refer the DOC about this statement: Add a menu to the Visual Studio menu bar

And from that link, you could use Extensions in Main menu extension to move yours from Extention to menu bar in Visual Studio 2019.

Hope it could help you.

Best Regards,

Dylan