aka dotnet dg
This is the home of Dependency Graph Drawer, a global dotnet tool to visualize the dependencies in your C# projects.
Run the following command: dotnet tool install -g DependencyGraphDrawer
Requires .NET 6.
dotnet dg -s <path to solution file> [-o <output file path>] [--includeNugetPackages]
If -s
/--solutionFile
is not given, the tool tries to find a solution file in the current directory and pick the first one it finds.
Output file defaults to dependencies.puml
in the current directory.
The resulting file will contain PlantUML code. You can preview out without installing anything by pasting the contents here but I recommend to use the VS Code plugin.