C4.Net.Editor
0.9.13
dotnet add package C4.Net.Editor --version 0.9.13
NuGet\Install-Package C4.Net.Editor -Version 0.9.13
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.Editor" Version="0.9.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="C4.Net.Editor" Version="0.9.13" />
<PackageReference Include="C4.Net.Editor" />
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.Editor --version 0.9.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: C4.Net.Editor, 0.9.13"
#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.Editor@0.9.13
#: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.Editor&version=0.9.13
#tool nuget:?package=C4.Net.Editor&version=0.9.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Package map
- Core package guide
- Client package guide
- Renderer package guide
- Editor package guide
- Client-side encryption
Table of contents
| Product | Versions 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.
-
net10.0
- C4.Net.Renderer (>= 0.9.13)
-
net11.0
- C4.Net.Renderer (>= 0.9.13)
-
net8.0
- C4.Net.Renderer (>= 0.9.13)
-
net9.0
- C4.Net.Renderer (>= 0.9.13)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.