Stella.Ergosfare.SourceGenerator 2.4.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Stella.Ergosfare.SourceGenerator --version 2.4.0
                    
NuGet\Install-Package Stella.Ergosfare.SourceGenerator -Version 2.4.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="Stella.Ergosfare.SourceGenerator" Version="2.4.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Stella.Ergosfare.SourceGenerator" Version="2.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Stella.Ergosfare.SourceGenerator">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Stella.Ergosfare.SourceGenerator --version 2.4.0
                    
#r "nuget: Stella.Ergosfare.SourceGenerator, 2.4.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 Stella.Ergosfare.SourceGenerator@2.4.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=Stella.Ergosfare.SourceGenerator&version=2.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Stella.Ergosfare.SourceGenerator&version=2.4.0
                    
Install as a Cake Tool

Stella.Ergosfare.SourceGenerator

Roslyn source generator for Ergosfare: compile-time registration that replaces reflection-based assembly scanning.

The generator discovers every Ergosfare construct (messages, handlers, interceptors) in your compilation and its referenced assemblies, pre-computes their handler descriptors, and emits AddGenerated() extensions plus dispatch roots that let the runtime build its pipelines without reflection — trimming- and Native AOT-friendly, value-type messages included.

builder.Services.AddErgosfare(o => o
    .AddCommandModule(c => c
        .AddGenerated()                  // default discovery
        .AddGenerated("reporting.*")));  // cherry-pick [DiscoveryKey] gated types
  • [DiscoveryKey("key")] gates a type behind explicit selection; [ExcludeFromDiscovery] removes it from discovery entirely.
  • Reference scanning is on by default; opt out per project with <ErgosfareSourceGeneratorScanReferences>false</ErgosfareSourceGeneratorScanReferences>.
  • Diagnostics: ERGO001 (inaccessible registrable type), ERGO002 (invisible type in a referenced assembly).

This is a development-time dependency (analyzers/); it adds no runtime assembly.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.17.1-preview 82 9/16/2026
2.17.0-preview 81 9/15/2026
2.16.2-preview 82 9/15/2026
2.16.1-preview 78 9/15/2026
2.16.0-preview 79 9/14/2026
2.15.1-preview 82 9/14/2026
2.15.0-preview 80 9/14/2026
2.14.0-preview 103 8/18/2026
2.13.0-preview 107 8/17/2026
2.12.0-preview 106 8/17/2026
2.11.0-preview 101 8/15/2026
2.10.0-preview 103 8/15/2026
2.9.0-preview 98 8/12/2026
2.8.0-preview 102 8/12/2026
2.7.0-preview 100 8/10/2026
2.6.0-preview 111 8/8/2026
2.4.0 89 9/14/2026
2.3.1 98 9/14/2026
2.3.0 115 8/12/2026
2.2.0 121 8/10/2026
Loading failed