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?
Asked
Active
Viewed 7,534 times
1 Answers
4
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.

Rick Sladkey
- 33,988
- 6
- 71
- 95
-
Thanks, I have been using Project -> Add Reference -> Browse. That's why it didn't work for me. – David Dec 29 '10 at 15:26
-
Re. "Project -> Add Reference -> Projects": Doesn't that already have to be setup correctly for the Project to even compile? Mine is, and it's still not finding References outside the Project containing the Definition. Re. "Project -> Properties -> Common Properties ->...": I'm not seeing a "Common Properties" option under "Project -> Properties" (in at least VS Pro 2015 v14.0.25421.03 Update 3) for C# Windows Application. – Tom Jun 15 '17 at 21:44