简体   繁体   中英

How to add action to Visual Studio Solution Explorer?

Please let me know how to add an action into the context-menu of "Solution Explorer" in Visual Studio?

I'd like to add my action into the context-menu of files listed in this explorer (see a screenshot for example), and then be able to launch my application (EXE file) that can get the filename (including its path) as an argument.

I currently use VS2008, however please let me know if that should be different with VS2010 and VS2012.

在此输入图像描述

THANK YOU

Write your own visual studio Add-In take a look at that link this is good place to start. but its not easy...

You're going to have to write a Visual Studio Add-In.

Take a look at the code for the Xsd2Code addin on codeplex. Specifically the Connect class . This addin does something similar to what you want... it adds a context menu option that's available when you right-click on project items (in this case, only enabled for .xsd files).

Also, check out the Solution Explorer Context Menu sample within the Visual Studio 2005 Automation Samples download.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM