Visual Studio Add-In - adding a context menu item to solution-explorer

后端 未结 2 1790
耶瑟儿~
耶瑟儿~ 2020-12-19 04:03

I\'m developing my first add-in for Visual studio and we need to add a context menu item to the solution explorer, that shows up for particular file types only (in our c

相关标签:
2条回答
  • 2020-12-19 04:14

    Take a look at this video. It describes how to append and control visibility of a new menu item by IDTCommandTarget interface.

    0 讨论(0)
  • 2020-12-19 04:31

    Well, you need to create a dynamically visible command that you will make visible only when the selected node in the Solution Explorer is .resx file and then add the command as a child of the Solution Explorer context menu (you would need GUID:ID pair of the latter).

    Here is a good article showing how to do that: http://blogs.rev-net.com/ddewinter/2008/03/22/dynamic-menu-commands-in-visual-studio-packages-part-2/

    0 讨论(0)
提交回复
热议问题