Reverse dependency with dotnet depends
I recently had an issue that a wrong version of a library sneaked into my .net solution and I wasn’t able to easily spot where it got pulled in.
There is a nice dotnet tool from Martin Björkström that can show the reverse dependencies in your project.
Just install this dotnet tool with the following command
dotnet tool instal --global dotnet-depends
Then go to the root directory of your project and start it
dotnet depends
Now you can select the library on the left hand side - and see how it gets pulled in on the right hand side
More details can be found on github