简体   繁体   中英

VS 2013 (2015) extension on solution explorer context menu

To add a context menu item to the solution explorer in Visual Studio, i can use the post Add context menu to VS 2010 solution explorer (display item on solution only) .

But is there a way to get the full filename of the selected solution? And how to get the context menu to show only on project files and solution files so i can do somthing with the project file?

To get the full filename of the currently opened solution you can use dte.Solution.FileName .

To add a menu command to a project in Solution Explorer you probably want to specify IDM_VS_CTXT_PROJNODE as the parent id.

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