开发者

Find all reference on all projects in solution

开发者 https://www.devze.com 2023-02-01 03:41 出处:网络
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 resu

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 t开发者_运维问答he occurences in P1; not the occurences used in P2. Is there a way to have Find All References work on the entire solution?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消