dotnet tool ADepends
$ dotnet add package ADepends.ToolThe ADepends tool scans a folder containing assemblies and config file and generates a DGML file of the assembly dependencies.
Built with net8.0
Requires install of net8.0 runtime
Refer to Install a global tool
dotnet tool install -g adepends.tool
Refer to Invoke a global tool
adepends [path] [outFile]
usage: ADepends.exe [path] [outFile]
path = Input directory containing assembly (.exe|.dll) files.
outFile = Output assembly dependencies Directed Graph document (.dgml) file.
The ADepends tool can be called post-build to generate an Assembly Dependency graph DGML file from build output.
<!-- Generate an Assembly Dependency graph DGML file from build output. -->
<Target Name="AssemblyDependencies" AfterTargets="PostBuildEvent" Condition="('$(BuildingInsideVisualStudio)' == 'true')">
<Exec Command="dotnet adepends "$(TargetDir.TrimEnd('\\'))" "$(MSBuildProjectDirectory)\$(MSBuildProjectName)-Dependencies.dgml"" />
</Target>
Open the generated DGML file in Visual Studio with "DGML Editor" component installed.
How to: Modify Visual Studio workloads, components, and language packs
The tool creates a node for each assembly and an edge for each static dependency.
Sample screenshot of EXE with two DLL dependencies.

©2025 Microsoft Corporation aluty@microsoft.com