Answered by:
Visual studio 2019 package menu

Question
-
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>&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.
Wednesday, August 28, 2019 7:33 PM
Answers
-
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
- Edited by Sergey Vlasov Thursday, August 29, 2019 4:17 AM
- Marked as answer by vlh7 Thursday, August 29, 2019 5:42 PM
Thursday, August 29, 2019 4:16 AM -
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,
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com
- Marked as answer by vlh7 Thursday, August 29, 2019 5:43 PM
Thursday, August 29, 2019 8:42 AM
All replies
-
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
- Edited by Sergey Vlasov Thursday, August 29, 2019 4:17 AM
- Marked as answer by vlh7 Thursday, August 29, 2019 5:42 PM
Thursday, August 29, 2019 4:16 AM -
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,
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com
- Marked as answer by vlh7 Thursday, August 29, 2019 5:43 PM
Thursday, August 29, 2019 8:42 AM