14

We have a big solution with a lot of projects in it. Some projects reference the same DLL's and I need to replace one DLL. Is there a way to see which references are in the entire solution so I don't have to go over each project one by one?

I want to see the solution-wide references, not per-project. Is it possible?

Kara
  • 6,115
  • 16
  • 50
  • 57
TedOnTheNet
  • 1,082
  • 1
  • 8
  • 23
  • How are you referencing the DLL? Is it in one place? – Oded Aug 02 '11 at 07:19
  • yes, it is. but the same file is referenced in 7 projects. The new dll has a different name (the version number is in the filename and we have to update the current version) – TedOnTheNet Mar 07 '12 at 10:19

3 Answers3

16

Just to expand a little further on Juozas answer, you can use most modern Text editors to find/replace. For example in Notepad++ use Find-in-Files (Ctrl-Shift-F)

enter image description here

Notice I left the end quote off the search as sometimes the Reference will include additional info, eg

Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=

Leaving off the end double quote may then give you false positive (as in my example it includes refs to System.Data and System.Data.DataSetExtensions

wal
  • 17,409
  • 8
  • 74
  • 109
5

You can try textual replace in .XXproj files to change the reference.

Juozas Kontvainis
  • 9,461
  • 6
  • 55
  • 66
4

Visual Studio by itself doens´t provide any functionality to display or visualize project (assembly) references and dependencies.

For this i would recommened you to use NDepend. It provides a Trial mode and it can analyze your assemblies and display the assembly dependencies.

Jehof
  • 34,674
  • 10
  • 123
  • 155