I'm looking to map the C# classes of my Visual Studio 2019 project on a dependency graph. I've seen some tools available but they require you to pay for a full version (ReSharper, NDepend). I'm looking for something free/cheap. If anyone has ideas, please let me know.
I have recently made a dotnet tool for this if you're interested.
It doesn't integrate with VS, but you can visualize the dependencies in an html file (also support XML, JSON and writing out results to console.)
to install
Make sure you have dotnet 5 runtime installed
Make sure you have dotnet 6 runtime installed
run dotnet tool install dependensee --global
once installed, run dependensee "path/to/root/of/csproj/files" "path/to/output.html"
By default it doesn't include nuget packages, but can be enabled with -P
switch
to see all options, run dependensee
with no args.
HTML output looks like this
There are command line options allowing you to output XML or JSON for further processing, either writing them to a file or writing to Standard Output allowing to pipe the output to other command line tools without touching the filesystem if necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With