views:

21

answers:

1

I have a solution with a decent number of projects (say, 30) and I want to find which of these projects reference a particular assembly.

Here's a concrete example: In the Object Browser I can see that two different versions of the same assembly are referenced throughout the solution. I want to see which project(s) use each of these references, so I can update them all to point to the same thing.

alt text

Unfortunately, the .csproj files are scattered in different locations, so a simple grep is not all that simple.

Any suggestions?

I'm thinking of making a script that parses the .sln file and then parse each project file, but maybe there's a simpler solution.

PS. I'm using ReSharper, if that's any help.

+1  A: 

In Resharper 5.0, you can click on a project and use "Find Code Dependent on Module". That should give you what you want.

Daniel Rose
+1 Cool to know, but it doesn't work for external assemblies, like DevExpress
Cristi Diaconescu