开发者

How to modify Visual Studio context menu of project file and add a command to it

I have created new type of project for Vis开发者_StackOverflow社区ual Studio 2010 (By dint of Visual Studio SDK) and this project consists of *.pat files. *.cpp files have in theirs context menu option "compile". I want to add such option into context menu of my type of files. How i can do it?


If you are creating a new type of project for Visual Studio probably you are implementing a VSIX (former VS Package)

To add a new Menu Item to Project Item Contextual Menu you need to declare a vsct file in your package, and inside VSCT attach your new menu item to Project Item Menu GUID


do you want to make an AddIn for Visual Studio? There is plenty of doc and samples for this, for example:

First Visual Studio 2010 AddIn

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜