A command line tool which dumps all the dependencies of .NET assemblies (*.dll or *.exe)
C# Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


dependency-reader Build Status Build Status

dep.exe is a command line tool which dumps all the dependencies of .NET assemblies (*.dll or *.exe files) to the standard output in a parsable format. It shows direct dependencies and indirect ones. If A depends on B and B depends on C, dep.exe will output

  • A depends on B with a distance of 1
  • B depends on C with a distance of 1
  • A depends on C with a distance of 2

dep.exe has been designed to focus on a single task and be combinable with other command line tools like grep or awk. Have a look at the examples below for more info.

The latest ready to use binary is available here: dep.exe



Download dep.exe first.


dep [ file-path | dir-path ]

This will recursively search for assemblies in the given path and output all the parent-child dependencies of assemblies. If the argument is ommited, the tool will start at the current folder . .

The format of the output is

assembly1-version1 dependency1-version1 distance [intermediate-dep1] [intermediate-dep2]

assembly1 is an assembly which depends on dependency1 which is another assembly. The distance between assembly1 and dependency1 is the minimum number of direct dependencies to follow to go from assembly1 to dependency1 using the dependency graph of the folder.


Hello world example

> dep

dep > mscorlib 1
dep > System 1
vshost32 > mscorlib 1
vshost32 > Microsoft.VisualStudio.HostingProcess.Utilities.Sync 1
vshost32 > mscorlib 1

Combine it with other tools

> dep myproject/bin | grep -i reactive

myproject >> Reactive.Core 2 ( Reactive.Linq )
myproject > Reactive.Linq 1
Reactive.Linq Reactive.Core 1

Go Berserk! and detect assemblies in more than one version

> dep | awk '{ print $1 " " $2; print $4 " " $5 }' | awk '{ if (length(first[$1]) == 0) first[$1] = $2; if (first[$1] != $2) errors[$1] = $1; }  END{ for(e in errors) print e } '


Build it yourself

Step Status
Compilation Build Status
Unit tests Build Status

Windows (Requires Visual Studio)

git clone https://github.com/manitra/dependency-reader.git
cd dependency-reader
nuget restore src/DependencyReader.sln
msbuild src/DependencyReader.sln

Linux or MacOS (Requires mono-complete)

git clone https://github.com/manitra/dependency-reader.git
cd dependency-reader
mono nuget restore src/DependencyReader.sln
xbuild src/DependencyReader.sln

The output is the 'bin/[ Configuration ]' folder

Next steps

Here some feature/bugfix to implement

  • use multiple threads
  • handle multiple version of the same assembly
  • [DONE 0.2.0] show indirect dependency (and add a third column for the path of the dependency)