Generate visualizable .NET runtime identifier graphs in SVG
This simple tool brings 4 awesome components together.
- Graphviz for generating the SVG graph
- The NuGet.Packaging library for reading the
runtime.json
file - The GiGraph library for generating the dot graph
- The CliWrap library for making calling the
dot
command line tool a breeze
Have a look at GiGraph and CliWrap repositories, they have perfect READMEs! 🤩
The dot
command line tool must be installed, see the Graphviz download page to install it on your operating system.
- Generate the full graph of .NET runtime identifiers from the latest runtime.json definition
dotnet run > rid.svg
- Generate a sub-graph for a given runtime identifier
dotnet run ios > rid-ios.svg
- Generate multiple sub-graphs for given runtime identifiers
dotnet run win aot > rid-win-aot.svg