ProjGraph.Lib 1.0.1

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

ProjGraph.Lib

Meta-package that bundles all ProjGraph libraries with a single dependency and a single DI registration call.

NuGet License: MIT

Installation

dotnet add package ProjGraph.Lib

Overview

ProjGraph.Lib is the recommended entry point for embedding ProjGraph capabilities in your own application. It aggregates all three analysis libraries under a single package reference and exposes a single extension method for dependency injection setup.

Included packages

Package Description
ProjGraph.Lib.Core Solution/project parsers, Roslyn compilation factory, core abstractions
ProjGraph.Lib.Dependencies Dependency graph analysis and Mermaid/tree rendering
ProjGraph.Lib.ClassDiagram Roslyn class hierarchy analysis and Mermaid class diagrams
ProjGraph.Lib.EntityFramework EF Core DbContext/snapshot analysis and Mermaid ERDs

Usage

Register all services

using Microsoft.Extensions.DependencyInjection;
using ProjGraph.Lib;

var services = new ServiceCollection();
services.AddProjGraphLib();
var provider = services.BuildServiceProvider();

Project dependency graph

using ProjGraph.Lib.Dependencies.Application;
using ProjGraph.Lib.Dependencies.Rendering;

var graphService = provider.GetRequiredService<IGraphService>();
var graph = await graphService.GetGraphAsync("MySolution.slnx", includePackages: false);

var renderer = provider.GetRequiredService<MermaidGraphRenderer>();
Console.WriteLine(renderer.Render(graph));

Class diagram

using ProjGraph.Lib.ClassDiagram.Application;
using ProjGraph.Lib.ClassDiagram.Rendering;

var classAnalysis = provider.GetRequiredService<IClassAnalysisService>();
var result = await classAnalysis.AnalyzeAsync("src/MyProject/MyProject.csproj");

var renderer = provider.GetRequiredService<MermaidClassDiagramRenderer>();
Console.WriteLine(renderer.Render(result));

Entity Relationship Diagram

using ProjGraph.Lib.EntityFramework.Application;
using ProjGraph.Lib.EntityFramework.Rendering;

var efAnalysis = provider.GetRequiredService<IEfAnalysisService>();
var model = await efAnalysis.AnalyzeContextAsync("src/Data/AppDbContext.cs");

var renderer = provider.GetRequiredService<MermaidErdRenderer>();
Console.WriteLine(renderer.Render(model));
Product Compatible and additional computed target framework versions.
.NET 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. 
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.0.1 33 4/4/2026
1.0.0 93 3/12/2026