Here's a sample preview where we are checking MAUI's Core project and then the entirety of the MAUI sln file.

A tool that scans your C# solution or project file and generates a dependency graph of classes, including base class hierarchies and class references.
Built using Roslyn for code analysis.
- Solution-wide analysis — Scans all projects and documents in a
.slnfile. - Single project support — Can directly scan a
.csprojfile without requiring a full solution. - Base class tracing — Shows class inheritance paths all the way up to the root base class.
- Reference mapping — Shows which classes reference other classes.
- Filter by root node — Focus on a specific class and its related dependencies.
- Cross-project support — Works even if classes span multiple projects in the solution.
From the command line:
DependsOn <path-to-sln-or-csproj> /f|/r|/iOptions:
/f - Scan both Reference and Inheritance links
/r - Scan Reference links only
/i - Scan Inheritance links only
Examples:
DependsOn MySolution.sln /f
DependsOn MyProject.csproj /i- The generated JSON file will be saved in the same folder as the DependsOn executable.
- The file name will be:
For example:
<SolutionOrProjectFileName>.dependency-graph.jsonMySolution.sln.dependency-graph.json MyProject.csproj.dependency-graph.json
- Run the
DependsOntool to generate the JSON file. - Go to https://dependson.vercel.app/.
- Upload the generated
.dependency-graph.jsonfile. - Explore the dependency graph interactively.
{
"nodes": [
{
"id": 1,
"name": "MyApp.ViewModels.ViewModelBase",
"shortName": "ViewModelBase",
"project": "Core",
"filePath": "C:/Projects/MyApp/Core/ViewModelBase.cs"
},
{
"id": 2,
"name": "MyApp.ViewModels.ShellViewModelBase<T>",
"shortName": "ShellViewModelBase<T>",
"project": "Core",
"filePath": "C:/Projects/MyApp/Core/ShellViewModelBase.cs"
},
{
"id": 3,
"name": "MyApp.ViewModels.HomeViewModel",
"shortName": "HomeViewModel",
"project": "UI",
"filePath": "C:/Projects/MyApp/UI/HomeViewModel.cs"
}
],
"links": [
{ "source": 2, "target": 1, "type": "inheritance" },
{ "source": 3, "target": 2, "type": "inheritance" },
{ "source": 3, "target": 4, "type": "reference" }
]
}This project is licensed under the GNU GPL v3 License — see the LICENSE file for details.