/RidGraph

Generate visualizable .NET runtime identifier graphs

Primary LanguageC#MIT LicenseMIT

Generate visualizable .NET runtime identifier graphs in SVG

.NET runtime identifier graph for iOS

About

This simple tool brings 4 awesome components together.

  1. Graphviz for generating the SVG graph
  2. The NuGet.Packaging library for reading the runtime.json file
  3. The GiGraph library for generating the dot graph
  4. 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! 🤩

Usage

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

⚠️ The produced graph will be huge and pretty hard to read. See below for how to generate only parts of the graph.

  • 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