Gengora.CSharp 2.5.0

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

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

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