Find all reference on all projects in solution

独自空忆成欢 提交于 2019-12-12 11:50:44

问题


My solution contains multiple projects (say P1, P2). In project dependencies, I set P2 to depend on P1, so P2 uses some classes in P1. When I do a Find All References on a class/method of P1, the result shows only the occurences in P1; not the occurences used in P2. Is there a way to have Find All References work on the entire solution?


回答1:


Project -> Project Dependencies is only for describing additional non-link related dependencies. To specify a link dependency for unmanaged code use:

Project -> Properties -> Common Properties -> Framework and References -> References -> Add New Reference... -> Projects

and for managed code use:

Project -> Add Reference -> Projects

If this is set up correctly Visual Studio should be able to find inter-project references.



来源:https://stackoverflow.com/questions/4520206/find-all-reference-on-all-projects-in-solution

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