ProjGraph.Lib.Core 1.2.0-beta.1

This is a prerelease version of ProjGraph.Lib.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ProjGraph.Lib.Core --version 1.2.0-beta.1
                    
NuGet\Install-Package ProjGraph.Lib.Core -Version 1.2.0-beta.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.Core" Version="1.2.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ProjGraph.Lib.Core" Version="1.2.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="ProjGraph.Lib.Core" />
                    
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.Core --version 1.2.0-beta.1
                    
#r "nuget: ProjGraph.Lib.Core, 1.2.0-beta.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.Core@1.2.0-beta.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.Core&version=1.2.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ProjGraph.Lib.Core&version=1.2.0-beta.1&prerelease
                    
Install as a Cake Tool

ProjGraph.Lib.Core

Core abstractions, parsers, and infrastructure for analyzing .NET solutions, projects, and source files.

NuGet License: MIT

Installation

dotnet add package ProjGraph.Lib.Core

Overview

ProjGraph.Lib.Core is the shared infrastructure layer for the ProjGraph library ecosystem. It provides:

  • Solution & project parsers for .sln (via Microsoft.VisualStudio.SolutionPersistence), .slnx, and .csproj files (via System.Xml.Linq); project files are read, never evaluated
  • Dependency injection extension methods for service registration
  • Abstractions (IProjectParser, ISolutionParser, IDiagramRenderer, IFileSystem, …)
  • Infrastructure services (CompilationFactory, ProjectDiscoveryService, PhysicalFileSystem, …)
  • Graph algorithms (Tarjan's SCC for cycle detection)

This package is the foundation for all other ProjGraph.Lib.* packages. It is not usually referenced on its own — use a purpose-specific package instead:

Usage

Register all core services:

using ProjGraph.Lib.Core;

services.AddProjGraphCore();

Parse a solution

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

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

// Resolve the parser matching the solution format: ISlnxParser for .slnx, ISlnParser for .sln.
var parser = provider.GetRequiredService<ISlnxParser>();
IEnumerable<string> projectPaths = parser.GetProjectPaths("MySolution.slnx");

Key Abstractions

Interface Description
ISolutionParser Extracts project file paths from a solution (ISlnParser / ISlnxParser)
IProjectParser Parses a single .csproj into a Project plus its references
IProjectDiscoveryService Discovers referenced projects recursively and resolves their paths
ICompilationFactory Creates Roslyn Compilation objects from project files
IDiagramRenderer<T> Generic renderer producing a string diagram from a model
IFileSystem Abstraction over System.IO for testability
IOutputConsole Abstraction over console output (Spectre.Console-backed by default)
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 (3)

Showing the top 3 NuGet packages that depend on ProjGraph.Lib.Core:

Package Downloads
ProjGraph.Lib.Dependencies

Project dependency graph analysis, solution statistics, and ASCII/Mermaid rendering for .NET solutions.

ProjGraph.Lib.EntityFramework

Entity Framework Core DbContext and ModelSnapshot analysis with Mermaid ERD generation for .NET projects.

ProjGraph.Lib.ClassDiagram

Roslyn-powered class hierarchy analysis and Mermaid class diagram generation for .NET projects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 184 9/15/2026
1.2.0-beta.1 95 9/15/2026
1.1.0 172 8/7/2026
1.0.2 188 4/7/2026
1.0.1 179 4/4/2026
1.0.0 177 3/12/2026