Mermaider.Layout.Msagl 0.18.0

dotnet add package Mermaider.Layout.Msagl --version 0.18.0
                    
NuGet\Install-Package Mermaider.Layout.Msagl -Version 0.18.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mermaider.Layout.Msagl" Version="0.18.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mermaider.Layout.Msagl" Version="0.18.0" />
                    
Directory.Packages.props
<PackageReference Include="Mermaider.Layout.Msagl" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mermaider.Layout.Msagl --version 0.18.0
                    
#r "nuget: Mermaider.Layout.Msagl, 0.18.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mermaider.Layout.Msagl@0.18.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mermaider.Layout.Msagl&version=0.18.0
                    
Install as a Cake Addin
#tool nuget:?package=Mermaider.Layout.Msagl&version=0.18.0
                    
Install as a Cake Tool

Mermaider.Layout.Msagl

Mermaider

An optional Microsoft MSAGL layout provider for Mermaider, for output that matches earlier Mermaider versions.

NuGet

Mermaider ships with a fast, zero-dependency layered layout engine, and that engine is the recommended choice. This package swaps in Microsoft's Automatic Graph Layout library for flowchart, state, class and ER diagrams, for compatibility with output from earlier Mermaider versions. On a simple flowchart it is about 10× slower and allocates about 7× more.

Install

dotnet add package Mermaider.Layout.Msagl

Quick start

using Mermaider;
using Mermaider.Layout.Msagl;

// Register globally:
MermaidRenderer.SetLayoutProvider(new MsaglLayoutProvider());

// Or per-call:
var svg = MermaidRenderer.RenderSvg(input, new RenderOptions
{
    LayoutProvider = new MsaglLayoutProvider(),
});

When to use this

Use it only when you need output that matches an earlier Mermaider version that rendered with MSAGL. Compared with the built-in engine, MSAGL has these limitations:

  • No compound layout. Subgraph boxes are drawn around their members afterwards and can overlap each other or unrelated nodes.
  • No orthogonal router features. There are no label columns, no ports spread along node sides or on diamond and ellipse outlines, and edges written against a subgraph end on a member node rather than on the subgraph border.
  • Missing class and state features. Class namespaces, class notes, lollipop interface targets and state notes are ignored.
  • Not used for every diagram. Requirement diagrams and the text output always use the built-in engine.

Node and box sizes come from the same code the built-in engine uses, so class, ER and flowchart text fits its boxes under either engine.

Learn more

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.18.0 16 11/23/2026
0.17.0 148 11/12/2026
0.16.1 99 11/12/2026
0.16.0 126 11/11/2026
0.15.2 111 11/11/2026
0.15.1 175 10/6/2026
0.15.0 115 10/6/2026
0.14.1 119 10/5/2026
0.14.0 123 10/5/2026
0.13.1 159 9/11/2026
0.13.0 141 9/11/2026
0.12.2 165 8/11/2026
0.12.1 159 7/22/2026
0.12.0 165 7/22/2026
0.11.1 149 7/22/2026
0.11.0 139 7/21/2026
0.10.1 137 7/21/2026
0.10.0 141 7/21/2026
0.9.0 144 7/14/2026
0.8.0 917 6/2/2026
Loading failed