Reputation: 2124
I thought that it would be simple. I am working on my custom vsix. I have created menu in code editor menu context. It works fine. But then I wanted to change some text, just
from (vsct file):
<Menu guid="guidCodeEditorCmdSet" id="CodeEditorSubMenu" priority="0x0100" type="Menu">
<Parent guid="guidCodeEditorCmdSet" id="CodeEditorNerdXGroup" />
<Strings>
<ButtonText>Title</ButtonText>
<CommandName>Title</CommandName>
</Strings>
</Menu>
to:
<Menu guid="guidCodeEditorCmdSet" id="CodeEditorSubMenu" priority="0x0100" type="Menu">
<Parent guid="guidCodeEditorCmdSet" id="CodeEditorNerdXGroup" />
<Strings>
<ButtonText>New menu item</ButtonText>
<CommandName>Title</CommandName>
</Strings>
</Menu>
But after cleaning and running the vsix in debug, the menu item text is not changed. It's left as it was. What's more there are some difficulties in creating new menus. Sometimes they are not shown at all. Is there any trick to manage it?
Upvotes: 0
Views: 401
Reputation: 23838
My suggestions are these:
1) close VS, delete .vs
hidden folder under the solution folder, bin
and obj
folder of your vsix project.
2) also,, delete the cache extension under C:\Users\xxx(current user)\AppData\Local\Microsoft\VisualStudio\16.0_xxxx\Extensions\xxx(your current vs account name)\your extension project name
When you finishing them all, restart your project to test again.
Upvotes: 0