views:

425

answers:

2

At some point "Find All References" feature got broken for a single solution that I have. It works in all other solutions. For this one, it always returns "Search found no results"

What could be the problem?

+2  A: 

I would kill all instances of Visual Studio and try again. If this doesn't work, I would imagine that there really are no references to the type or member you are looking for.

Since this feature is working for other solutions I find it hard to believe that this is an issue with the IDE itself. I think the most likely explanation is that the IDE is correct and you actually have no references.

Do you have two types that are similarly named but not actually the same type? Can you find the references by text search?

Andrew Hare
+4  A: 

In the old days (VC6 :) ) this type of problem was often fixed by deleting the .ncb file and letting it be rebuilt automatically. Not sure if this is still true in VS2005/8.

Steve Fallows
+1, deleting the NCB should fix this on VS 2k5 and 2k8 as well.
Not Sure