What is the easiest way to determine the dependencies of a .NET assembly

Considering a large system with hundreds of assemblies, what is the easiest way to determine which other projects in the large system depend on a specific assembly when there isn't any way to create a single visual studio solution that contains all the projects?


I would say that NDepend is the easiest way to determine the dependencies of a .Net Assembly, regardless of complexity:

NDepend is a tool that simplifies managing a complex .NET code base. Architects and developers can analyze code structure, specify design rules, plan massive refactoring, do effective code reviews and master evolution by comparing different versions of the code.

You could use a tool such as ndepend. It will analyze the compiled assemblies and generate a nice graph with arrows pointing to and from your assemblies. I've seen a similar feature in VS2010.

Configure the operating system to index your source code and search the content for the angle brackets that indicate a reference. Problem is that the path in the reference might be different depending on where the refering projects reside in relation to the one you are looking for so some regular expression might be in order.

I'll third the NDepend suggestion, it works extremely well for this problem. You don't have to change anything about your Visual Studio solutions or projects to use it.


Need Your Help

Read CSV cells; write to dictionary/array

python arrays csv dictionary

I am attempting to create a python script that will read CSV files and for instance, count each time the letter 'a' appears or the integer 1 shows up.

Umbraco 7 - How do I get the published date from IPublishedContent?

c# asp.net-mvc-4 content-management-system umbraco

I am having trouble finding the published date. I working the Umbraco.Core.Models.IPublishedContent interface, which doesn't seem to have a published date, only a created and updated date.