Reputation: 1893
In VS 2022 in a C# project I right-click on a method and select "Find All References" In some cases it shows no references, but when I put a breakpoint it stops in this method and in the call stack it's a normal call not some reflection magic. The method in question does reside in a different project than the caller of that method, but they are both in the same solution.
What am I missing?
Upvotes: 7
Views: 5013
Reputation: 697
In my case, the solution to the problem was:
.vs
folders related to the solution and its projects (note that these folders are typically hidden folders)Upvotes: 4
Reputation: 4591
Make sure that the contained by
dropdown is set to Entire Solution
.
Upvotes: 2