How to access selected project in Solution Explorer from a Visual Studio Add-In?

落爺英雄遲暮 提交于 2019-12-11 06:57:37

问题


I developed a VS 2008 add-in and added a custom menu item to context menu for "Project" nodes in Solution Explorer.

This allows me to right-click any project in solution and perform a custom operation on that project. Or at least, it would, if I knew how to access the selected project from my Click event handler.

Can someone with more experience please help me?


回答1:


I think what you're looking for is DTE.ActiveSolutionProjects.



来源:https://stackoverflow.com/questions/1272022/how-to-access-selected-project-in-solution-explorer-from-a-visual-studio-add-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!