Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Find all references to the project in solution

Tags:

Is there an easy way to find all references to the project in solution in VS2010? In fact I have a solution with 43 projects in it and I want to make sure there are no projects that have references to Project#N.

Thanks

like image 596
Galina Avatar asked Jul 19 '12 09:07

Galina


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 you get references in Solution Explorer?

You can also right-click the project node and select Add > Project Reference. If you see a References node in Solution Explorer, you can use the right-click context menu to choose Add Reference. Or, right-click the project node and select Add > Reference.

How do I find references in Visual Studio Solution Explorer?

In Solution Explorer, double-click the My Project node for the project. In the Project Designer, click the References tab. Click the Add button to open the Add Reference dialog box. In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

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.


1 Answers

Easy but dull way: right-click on solution, choose Project Dependencies, choose the first project in the Projects drop down list, and use down arrow to scroll through projects. For each project in Project box look if your project of interested checked in the list - that's most probably will make your list.

Or you can use Resharper for this:

  • Right-click on module and choose Find Code Dependent on Module to find all projects which really use this module (this will not show references which exist, but not used).
  • Right-click on module and choose Project Hierarchy, then click "Referencing projects" to see all project references
like image 100
Lanorkin Avatar answered Oct 12 '22 00:10

Lanorkin