Papst.EventStore.CodeGeneration 7.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Papst.EventStore.CodeGeneration --version 7.1.2
                    
NuGet\Install-Package Papst.EventStore.CodeGeneration -Version 7.1.2
                    
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="Papst.EventStore.CodeGeneration" Version="7.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Papst.EventStore.CodeGeneration" Version="7.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Papst.EventStore.CodeGeneration" />
                    
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 Papst.EventStore.CodeGeneration --version 7.1.2
                    
#r "nuget: Papst.EventStore.CodeGeneration, 7.1.2"
                    
#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 Papst.EventStore.CodeGeneration@7.1.2
                    
#: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=Papst.EventStore.CodeGeneration&version=7.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Papst.EventStore.CodeGeneration&version=7.1.2
                    
Install as a Cake Tool

Papst.EventStore.CodeGeneration

Roslyn source generator for Papst.EventStore.

The generator inspects your compilation at build time and emits the dependency injection registration for your events and aggregators, so you never hand-maintain a registry of event names or handler types.

Installation

dotnet add package Papst.EventStore.CodeGeneration

This package ships as an analyzer. It contributes no runtime dependencies to your application.

What it generates

Decorate your events and aggregators:

[EventName("OrderPlaced")]
public record OrderPlaced(Guid OrderId, decimal Total);

The generator emits AddCodeGeneratedEvents() — an IServiceCollection extension that registers every discovered event name to its CLR type, registers the discovered IEventAggregator<,> implementations, and wires up an IEventTypeProvider if none is registered yet:

services.AddCodeGeneratedEvents();

It also emits AddCodeGeneratedEventCatalog(), registering an IEventCatalog describing the known events.

Multiple [EventName] attributes on one type are supported for event versioning; mark legacy names with IsWriteName = false to keep them readable without writing them.

See the project README for the full documentation.

License

MIT

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
7.2.7 52 11/24/2026
7.2.5 54 11/24/2026
7.1.4 56 11/24/2026
7.1.2 57 11/24/2026
7.0.14 65 11/23/2026
7.0.12 304 9/19/2026
7.0.4 150 8/18/2026
7.0.3 130 8/18/2026
6.4.5 155 8/10/2026
6.4.3 126 8/10/2026
6.3.3 160 8/2/2026
6.3.2 133 8/2/2026
6.2.2 144 7/19/2026
6.1.5 132 7/19/2026
6.1.2 782 5/16/2026
6.0.17 154 5/16/2026
6.0.14 161 5/6/2026
6.0.11 131 5/2/2026
6.0.9 160 4/12/2026
6.0.4 137 4/11/2026
Loading failed