views:

290

answers:

2

I have a Visual Studio 2010 Solution that was imported from a Visual Studio 2008 solution that the Find all References does not work on. I've tried doing some searches on Google to try and figure this out but have come up empty handed.

The find all references in VS2008 worked like a charm, we upgraded to 2010 and now no matter what file I'm in the Find All References doesn't return anything.

Anyone have any idea how to possibly fix this or some good ways to "debug" the issue.

A: 

I haven't come across this specific problem, but I have had a good few odd few Visual Studio behaviours in the past (2005/2008/2010) that were fixed by doing a full reset of all the VS settings.

Occasionally the settings seem to get corrupted and things stop working:

Tools -> Import & Export Settings -> Reset All Settings

A bit of a long shot - but give it a go.

Additionally, this article details the changes in "Find All References" between 2008 and 2010. I'm not sure if this may shed any further light on your issue, but I thought it worth highlighting.

Rob Levine
Tried it, no such luck. :(
Jeremiah
So - if you create a really simple c# project with two types, where one references the other, then "find all references" won't work, even in this simple case?
Rob Levine
Yes, created a simple project with two classes, one referencing the other, then did a find all reference and it returned both reference to the function I created and used.
Jeremiah
so it does work in this simple case - but not on the converted solution? How many projects are there in the solution? If it is a small number (say 1-10), is it worth deleting the solution file and project files, and recreating these all in VS2010?
Rob Levine
15 Projects. That is one of our options, I'm assuming it is an issue with a reference or the way it converted one of our projects. Just haven't narrowed it down. I was hoping someone else ran into this issue that might have a good way of doing that narrowing. :)
Jeremiah
+2  A: 

I figured out what it was. I was still running the Beta version of the Web Deployment Project code template. Just had to un-install it and download the RTW version and everything was fine.

Jeremiah
Voting this up - I had the same issue, and also had beta Web Deployment Project installed. This is a good thing to check when having issues: Do you have any beta or outdated plugins installed?
ViNull
DilbertDave