Gengora.CSharp
2.5.0
dotnet add package Gengora.CSharp --version 2.5.0
NuGet\Install-Package Gengora.CSharp -Version 2.5.0
<PackageReference Include="Gengora.CSharp" Version="2.5.0" />
<PackageVersion Include="Gengora.CSharp" Version="2.5.0" />
<PackageReference Include="Gengora.CSharp" />
paket add Gengora.CSharp --version 2.5.0
#r "nuget: Gengora.CSharp, 2.5.0"
#:package Gengora.CSharp@2.5.0
#addin nuget:?package=Gengora.CSharp&version=2.5.0
#tool nuget:?package=Gengora.CSharp&version=2.5.0
Gengora.CSharp
Gengora.CSharp supplies the typed Roslyn and Razor stages used to implement a
Gengora generator: source selection, symbol binding, immutable model hydration,
template rendering, syntax merging, and target-compilation validation.
It is a compiler component, not a standalone product generator. Applications normally install a concrete generator such as Gengora.Mapper, Gengora.Repository, or Gengora.Serialization in their Gengora host.
Install
dotnet add package Gengora.CSharp
The package belongs in the generator host. An application that only compiles the generated source does not need Roslyn, RazorBlade, or this package at runtime.
authored C# -> Roslyn symbols -> generator model -> Razor -> validated C#
Rendered source is bound in the declared target compilation before publication. If a target source generator must complete a valid partial contract, Gengora runs that generator only after the initial target binding reports an error. Already complete templates do not pay that fallback cost.
Both the template emit pipeline and host-registered Roslyn generators apply the
shared Gengora formatter to their owned output before returning it for publication.
The complete candidate project supplies semantic context for dependent generated
files. Remaining style errors and compiler diagnostics introduced by formatting
prevent publication; the host retains the previous output. Length findings stay
advisory, and short combined direct if checks are accepted by the same profile
used in the editor. Repeated Roslyn generation preserves unchanged documents.
This check covers emitted C# files. Validation of generated members merged into authored files, and Roslyn analyzers running directly in the compiler, still need their corresponding integration.
Read the generator-authoring guide for the stage boundaries and the Gengora host guide for project ownership and execution.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Basic.Reference.Assemblies (>= 1.8.8)
- Gengora.Common (= 2.5.0)
- Gengora.Common.Attributes (= 2.5.0)
- Gengora.CSharp.Formatting (>= 2.5.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 5.6.0)
- RazorBlade (>= 1.0.0)
- System.Linq.Async (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Gengora.CSharp:
| Package | Downloads |
|---|---|
|
Gengora.CSharp.Comptime
Roslyn-backed compile-time pipeline and typed result APIs for Gengora C# generators. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.0 | 67 | 11/5/2026 |
| 2.5.0-rc.287-openedstream... | 93 | 10/31/2026 |
| 2.5.0-rc.263-rawjson... | 90 | 10/29/2026 |