Make sure you have .NET SDK 8.0 or higher installed on your machine. Then run
dotnet tool install -g Project.Graph.Tool
dotnet-projectgraph --help
Use the --output <file>
option to write the result to a .json
or .dgml
file. If ommitted the output will be retured as JSON to the console.
Use the --packages
options to also include Nuget packages in the DGML-graph.
Use the --order
option to recieve an ordered list of the projects by dependency
- VS Code
- VS 2019 or higher
- .NET 8.0 SDK or higher
Open in VS Code, run the task pack and install
.
Note: To run tasks in VS Code, press CTRL+⇧+P, enter Run
and select Tasks: Run Task
.