XrmToolSuite.ErdGenerator 1.2026.7.11

dotnet add package XrmToolSuite.ErdGenerator --version 1.2026.7.11
                    
NuGet\Install-Package XrmToolSuite.ErdGenerator -Version 1.2026.7.11
                    
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="XrmToolSuite.ErdGenerator" Version="1.2026.7.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XrmToolSuite.ErdGenerator" Version="1.2026.7.11" />
                    
Directory.Packages.props
<PackageReference Include="XrmToolSuite.ErdGenerator" />
                    
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 XrmToolSuite.ErdGenerator --version 1.2026.7.11
                    
#r "nuget: XrmToolSuite.ErdGenerator, 1.2026.7.11"
                    
#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 XrmToolSuite.ErdGenerator@1.2026.7.11
                    
#: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=XrmToolSuite.ErdGenerator&version=1.2026.7.11
                    
Install as a Cake Addin
#tool nuget:?package=XrmToolSuite.ErdGenerator&version=1.2026.7.11
                    
Install as a Cake Tool

🗺 ERD Generator

An XrmToolBox plugin that generates Dataverse entity-relationship diagrams from live metadata. Scope by all tables / solution / publisher, pick tables, choose a column-display level, filter (custom-only / managed-only), preview the Mermaid output, and export to eight formats. Read-only — it reads metadata and never modifies schema.

Features

Area What it produces
Scope & table selection Scope the ERD by all tables, one solution, or a publisher; a checked-list table selector (with text filter) adds/removes tables. Relationship targets outside the selected set are listed on lookup columns (marked) but not drawn as edges (both-ends rule)
Schema, keys & columns Each table shows display + schema name, primary id/name, and alternate keys (EntityKeyMetadata); a column-display setting (Keys+lookups / Important / All) controls which columns appear, each with type and required level
Relationships & cascade 1:N, N:1 and N:N relationships plus lookup columns drawn with correct cardinality; cascade behavior (assign/delete/merge/reparent/share/unshare) and required level shown per relationship
Filters & status Custom-only, managed-only and relationship-type filters apply to the model before layout without re-querying; custom vs standard tables are visually distinguished; a live text preview reflects the current column-display / filter choices before export

The SDK-free ERD model, emitters, and the ErdModel.Apply filter are UI-free and unit-tested; the live metadata collector, PNG (GDI+) and PDF (MigraDoc-GDI) renderers are manual-tested.

Exports

Eight formats, all run off the UI thread:

  • Mermaid erDiagram
  • PlantUML
  • SVG (hand-written; colours custom table headers distinctly)
  • PNG (GDI+ raster)
  • PDF (native, via the MigraDoc/PdfSharp-GDI chain)
  • HTML (self-contained; embeds the SVG)
  • Markdown (embeds a mermaid erDiagram block)
  • JSON (the structured ERD model, written indented / pretty-printed)

Help & Support

A Help button (right of the toolbar) opens a Help & Support dialog with Documentation, Report an issue, and a support link, each opened via Process.Start. The control implements IHelpPlugin and IGitHubPlugin, so XrmToolBox's own tool-menu links resolve to the same GitHub project (kkora/XrmToolSuite).

Build & install

On the machine that runs XrmToolBox, build straight into the Plugins folder:

dotnet build src\Tools\XrmToolSuite.ErdGenerator\XrmToolSuite.ErdGenerator.csproj -c Release -p:DeployToXTB=true

Restart XrmToolBox and open ERD Generator.

This tool is not single-DLL: it ships the native-PDF (PdfSharp/MigraDoc-GDI) export dependency chain — the tool DLL plus its five -gdi PdfSharp/MigraDoc DLLs — flat in the Plugins root (never a subfolder), or XrmToolBox silently drops it from the Tools list. The one-step build above copies the whole chain for you.

See ./DEPLOYMENT.md for manual-install steps and troubleshooting, and the suite-wide Deployment_Guide_XrmToolBox.md for the full DLL list and export-tool guidance.

Usage

  1. Connect to your Dataverse environment (System Customizer or higher recommended).
  2. Choose a scope — all tables, a solution, or a publisher — and load the table list.
  3. Check the tables to include, pick a column-display level, and set any custom/managed or relationship-type filters.
  4. Review the live Mermaid preview.
  5. Export to any of the eight formats.

Notes & limitations

  • Read-only: the tool reads metadata only and never modifies schema.
  • The ERD model, emitters and filter stay UI-free and SDK-free, and degrade missing metadata to notes rather than failing.
  • Lookup columns to tables outside the selected set are listed and marked but not drawn as edges.
  • PNG (GDI+) and PDF (MigraDoc-GDI) rendering is only verifiable in a live Windows/XrmToolBox session and is pending manual sign-off.
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 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
1.2026.7.11 96 7/11/2026
1.2026.7.10 94 7/11/2026
1.2026.7.9 95 7/11/2026
1.2026.7.8 104 7/11/2026
1.2026.7.7 106 7/11/2026
1.2026.7.6 98 7/10/2026
1.2026.7.5 95 7/9/2026
1.2026.7.3 97 7/7/2026

1.2026.7.11: JSON export is now indented for readability.