dotMorten.OmdGenerator
0.2.0
See the version list below for details.
dotnet add package dotMorten.OmdGenerator --version 0.2.0
NuGet\Install-Package dotMorten.OmdGenerator -Version 0.2.0
<PackageReference Include="dotMorten.OmdGenerator" Version="0.2.0" />
paket add dotMorten.OmdGenerator --version 0.2.0
#r "nuget: dotMorten.OmdGenerator, 0.2.0"
// Install dotMorten.OmdGenerator as a Cake Addin #addin nuget:?package=dotMorten.OmdGenerator&version=0.2.0 // Install dotMorten.OmdGenerator as a Cake Tool #tool nuget:?package=dotMorten.OmdGenerator&version=0.2.0
.NET Object Model Diagram Generator
A cross-platform Roslyn-based tool that generates an object model diagram of a set of C# source files
Usage:
dotnet GENERATOR.dll /source=[source folder] /compareSource=[oldSourceFolder] /preprocessors=[defines] /format=[html|image] /ShowPrivate /ShowInternal
Required parameters:
source Specifies the folder of source files to include for the object model.
Separate with ; for multiple folders
Optional parameters:
compareSource Specifies a folder to compare source and generate a diff model
This can be useful for finding API changes or compare branches
format Format to generate: 'image' generates an image for each object.
'html' a single html output (html is default)
preprocessors Define a set of preprocessors values. Use ; to separate multiple
filters Defines one or more strings that can't be part of the path Ie '/Samples/;/UnitTests/'
(use forward slash for folder separators)
regexfilter Defines a regular expression for filtering on full file names in the source
ShowPrivate Show private members (default is false)
ShowInternal Show internal members (default is false)
An example of a generated output for all of .NET Core can be found here.
It can also be used to compare two folders (for instance two separate branches) and only show changes to the API. Here's an example of .NET CoreFX v2.0 vs Master.
Examples
Generate OMD for .NET Core FX source code, and ignore ref and test folders:
dotnet Generator.dll /source=c:\github\dotnet\corefx\src /filters=/ref/;/tests/;/perftests/
Compare .NET CoreFX Master with v2.0.0 repo branches directly from their Github zipped downloads:
dotnet Generator.dll /source=https://github.com/dotnet/corefx/archive/master.zip /compareSource=https://github.com/dotnet/corefx/archive/release/2.0.0.zip /filters=/ref/;/tests/;/perftests/
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.