Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Display a SubMenu with a VSIX Extension

$
0
0

 Hello,

I am making a simple VSIX Extension, and I want to add a submenu when I right-clic on a folder in the solution explorer.

I made the following code in my vsct :

<Commands package="guidAppendFilesPackage"><Groups><Group guid="guidAppendFilesPackageCmdSet" id="MyItemMenu" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_FOLDERNODE" /></Group><Group guid="guidAppendFilesPackageCmdSet" id="MyMenuGroup" priority="0x0600"><Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_FOLDERNODE" /></Group></Groups><Menus><Menu guid="guidAppendFilesPackageCmdSet" id="MyItemMenu" priority="0x0100" type="Menu" ><Strings><ButtonText>MyItem</ButtonText></Strings></Menu></Menus><Buttons><Button guid="guidAppendFilesPackageCmdSet" id="AppendFilesId" priority="0x0100" type="Button"><Parent guid="guidAppendFilesPackageCmdSet" id="MyMenuGroup" /><Strings><ButtonText>New Feature...</ButtonText></Strings></Button></Buttons></Commands><Symbols><GuidSymbol name="guidAppendFilesPackage" value="{33904775-a325-4ce7-8653-940811167502}" /><GuidSymbol name="guidAppendFilesPackageCmdSet" value="{befbe0b5-b697-48c4-85b5-a5568ff83c4b}"><IDSymbol name="MyMenuGroup" value="0x1020" /><IDSymbol name="MyItemMenu" value="0x1021" /><IDSymbol name="AppendFilesId" value="0x0100" /></GuidSymbol></Symbols></CommandTable>

But the menu is never displayed. The Button is working well, but not the menu.

I must be missing something, but I can't find what in the msdn reference or in all the github examples I've seen.

Has somenone any idea ?

Thanks,

Jeremy


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>