locked
How to combine two top level menu with same name in visual studio using vspackage extension. RRS feed

  • Question

  • I create top level menu with name "Custom Menu" from extension project and also create another top level menu with same name "Custom Menu" from another extension project.After I install both VSIX top level menu shows multiple times in the visual studio.

    How to I combine two menu with same name from different extension?

    Monday, February 11, 2019 3:42 AM

All replies

  • Hi Abishake,

    The quick answer is you cannot. Each menu/command is separate and unique. This is why they are identified via a package guid and an ID. If you need to have a single top level menu, you'll have to choose one of the packages to be the implementer, and then other will need to be dependent on the package that implements the menu.

    Meaning the one package (that doesn't implement the menu) will need to be dependent on the other package (the one that does implement the menu) to be installed as a prerequisite. The .vsixmanifest of the dependent package should list the other as being dependent on the one that does implement the menu.

    Sincerely,


    Ed Dore

    Thursday, February 14, 2019 3:32 AM