Nexum.SourceGenerators 1.0.5

dotnet add package Nexum.SourceGenerators --version 1.0.5
                    
NuGet\Install-Package Nexum.SourceGenerators -Version 1.0.5
                    
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="Nexum.SourceGenerators" Version="1.0.5">
  <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="Nexum.SourceGenerators" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Nexum.SourceGenerators">
  <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 Nexum.SourceGenerators --version 1.0.5
                    
#r "nuget: Nexum.SourceGenerators, 1.0.5"
                    
#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 Nexum.SourceGenerators@1.0.5
                    
#: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=Nexum.SourceGenerators&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Nexum.SourceGenerators&version=1.0.5
                    
Install as a Cake Tool

Nexum.SourceGenerators

Roslyn Source Generators and analyzers for Nexum. Compile-time handler registration and diagnostics.

What's inside

  • Tier 1 — DI registration code generation for AddNexum() + compile-time diagnostics (NEXUM001–NEXUM004)
  • Tier 2 — Compiled pipeline delegates (monomorphized dispatch)
  • Tier 3 — Roslyn Interceptors for call-site replacement

Uses ForAttributeWithMetadataName for fast handler discovery. This package is optional — Nexum works standalone without it.

Installation

dotnet add package Nexum.SourceGenerators

Note: If you use Nexum.Extensions.DependencyInjection, the Source Generator is already bundled — no need to install separately.

Documentation

Full documentation: nexum.wizardsoftware.pl

See Source Generators for the tiered architecture, diagnostics reference, and interceptor setup.

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
1.0.5 111 4/9/2026
1.0.3 105 4/6/2026
1.0.2 108 4/4/2026
1.0.1 117 3/28/2026
1.0.0 110 3/15/2026
0.9.2 99 2/28/2026
0.9.1 108 2/27/2026
0.9.0 109 2/15/2026