LIKE US ON FACE BOOK

Monday, 5 June 2017

Creating Context menu Extension for Project wise i.e. (Adding right lick option for project selected) for Visual Studio 2013 & above

> Create a VSIX project
> Add Custom Commad to project(available in extensibility)
> Use "IDM_VS_CTXT_PROJNODE" as ID for parent, as it is most important to specify that its project node.

eg:-

<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE"/>

this is avalaible in <groups>

> handle the action as you want in "call back function" in ".cs file".

and here is some more option if you wanna have,

> Adding a Button to the Solution Explorer Toolbar
use ID as "IDM_VS_TOOL_PROJWIN" as parent id.

No comments:

Post a Comment