Find all reference on all projects in solution

2019-06-26 21:09发布

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条回答
我欲成王,谁敢阻挡
2楼-- · 2019-06-26 21:46

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.

查看更多
登录 后发表回答