Add context menu to VS 2010 solution explorer (dis

2019-07-02 00:34发布

问题:

It is fairly easy to add a context menu item to the solution explorer in VS 2010. But how to display the menu item ONLY on solution items? Not on project items or something else?

Best regards, D.R.

回答1:

Use

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

and reset the experimental instance before restarting VSX (you can find the reset script in the VS start menu folder)