C4.Net.Core 0.9.11

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

C4.Net

C4.Net is a multi-targeted .NET library for building architecture workspaces in code, publishing them to Structurizr-compatible services, rendering diagrams to SVG, and adding interactive editing to Blazor applications.

For C4 model background and notation guidance, use the official C4 Model website.

Package overview

Package Purpose Start here when you need to...
C4.Net.Core Workspace, model, view, and styling APIs Define people, software systems, containers, components, and views in .NET code
C4.Net.Client Structurizr-compatible API client Read or publish workspaces, preserve layout, and use optional client-side encryption
C4.Net.Renderer SVG renderer Generate standalone SVG diagrams from workspace views
C4.Net.Editor Interactive Blazor editor components Embed a browser-based layout editor for rendered workspace views

Installation

dotnet add package C4.Net.Core
dotnet add package C4.Net.Client
dotnet add package C4.Net.Renderer
dotnet add package C4.Net.Editor

Install only the packages your application needs. Core is the foundation package. Client and Renderer build on Core, and Editor builds on Renderer.

Quick example

using C4.Net;

Workspace workspace = new Workspace("Getting Started", "A simple architecture workspace.");
Model model = workspace.Model;

Person user = model.AddPerson("User", "Uses the system.");
SoftwareSystem softwareSystem = model.AddSoftwareSystem("Software System", "Provides the core capability.");
user.Uses(softwareSystem, "Uses");

SystemContextView view = workspace.Views.CreateSystemContextView(
    softwareSystem,
    "system-context",
    "A simple system context view.");
view.AddAllPeople();
view.AddAllSoftwareSystems();

Styles styles = workspace.Views.Configuration.Styles;
styles.Add(new ElementStyle(Tags.SoftwareSystem) { Background = "#1168bd", Color = "#ffffff" });
styles.Add(new ElementStyle(Tags.Person) { Background = "#08427b", Color = "#ffffff", Shape = Shape.Person });

Documentation

Table of contents

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on C4.Net.Core:

Package Downloads
C4.Net.Renderer

SVG rendering for C4.Net workspace views.

C4.Net.Client

The API client for publishing C4 models to the Structurizr cloud service and on-premises installation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.13 106 9/14/2026
0.9.12 113 9/11/2026
0.9.11 117 9/10/2026