Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find all references in a solution (thus of all projects)?

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?

like image 488
TedOnTheNet Avatar asked Aug 02 '11 07:08

TedOnTheNet


People also ask

How do you find references in a project?

You can view references in Project Explorer or when you click References on the Tools menu.

How do I see all references in Visual Studio?

The Find All References command is available on the context (right-click) menu of the element you want to find references to. Or, if you are a keyboard user, press Shift + F12.

What are references in a project?

A reference is essentially an entry in a project file that contains the information that Visual Studio needs to locate the component or the service.


2 Answers

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

like image 75
wal Avatar answered Oct 15 '22 22:10

wal


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

like image 27
Juozas Kontvainis Avatar answered Oct 15 '22 23:10

Juozas Kontvainis