Gengora.Host 2.5.0

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

Gengora.Host

Gengora.Host runs the generator definition owned by an application. Use it in one small executable project beside the application, together with the selected product generator packages.

Use it

<PropertyGroup>
  <OutputType>Exe</OutputType>
  <GengoraHostProject>true</GengoraHostProject>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="Gengora.Host" />
</ItemGroup>
using Gengora.Common;
using Gengora.Host;

var builder = GengoraApplicationBuilder.CreateDefaultBuilder();

// Register one or more product generators and their exact projects here.

return await GengoraHost.RunAsync(builder, args);

The same executable supports one-shot generation, --watch, incremental build execution, and the private editor protocol. Always return RunAsync so a generation failure becomes a failing process and build.

The package brings the matching formatter and semantic MCP runtime through a NuGet dependency. Keep the selected Gengora.Host version in the host project; a normal restore fetches its matching tools without a VS Code extension update.

Unchanged one-shot runs reuse validated outputs automatically. The fingerprint includes reference aliases, interop embedding and assembly/module kind as well as source and package inputs. Changed inputs or missing, altered or invalid outputs run generation again; no reuse environment variable is needed. Reuse also restores the complete semantic previews and navigation targets from both pipeline families. Incomplete cache metadata triggers ordinary generation; previous cache shapes are discarded rather than read through a compatibility path.

Boundary

The host loads only declared projects and their required project-reference closure, then publishes a complete candidate atomically. Generator code still runs with the current user's operating-system permissions. Keep this package out of the application runtime project.

Follow the host project example.

Builds now hand generation to a retained process for the marked Host project and configured workspace. Startup and generation are serialized; a changed Host or environment selects a different identity. An unavailable peer triggers ordinary cold generation automatically. Running the executable without arguments remains the one-shot route. No application-code change or reuse switch is needed.

The process has idle, request and resident-memory limits. A cancelled build cancels its request and fails; discovery records never authorize killing an existing IDE or MCP process. See the host reference for configuration and usage.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0 60 11/5/2026
2.5.0-rc.287-openedstream... 78 10/31/2026
2.5.0-rc.274-allocation... 78 10/30/2026
2.5.0-rc.272-sharedsyntax... 106 10/29/2026