JasperFx.SourceGenerator 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package JasperFx.SourceGenerator --version 2.0.1
                    
NuGet\Install-Package JasperFx.SourceGenerator -Version 2.0.1
                    
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="JasperFx.SourceGenerator" Version="2.0.1">
  <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="JasperFx.SourceGenerator" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="JasperFx.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 JasperFx.SourceGenerator --version 2.0.1
                    
#r "nuget: JasperFx.SourceGenerator, 2.0.1"
                    
#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 JasperFx.SourceGenerator@2.0.1
                    
#: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=JasperFx.SourceGenerator&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=JasperFx.SourceGenerator&version=2.0.1
                    
Install as a Cake Tool

JasperFx.SourceGenerator

Roslyn source generators for JasperFx, all reflection-free for fast cold start and trim/AOT-friendly builds. This single analyzer package bundles three generators:

Generator What it does
DescriptionGenerator Generates IDescribeMyself.ToDescription() for OptionsDescription types, eliminating runtime reflection on options classes that surface in diagnostic snapshots (CritterWatch, etc.).
CommandDiscoveryGenerator Emits a compile-time manifest of IJasperFxCommand types so dotnet run -- <command> lookups skip runtime assembly scanning.
InputParserGenerator Emits IGeneratedInputParser implementations for command input models, parsing CLI arguments/flags without runtime reflection.

Renamed from JasperFx.SourceGeneration. The command-discovery and input-parser generators previously shipped in the JasperFx.SourceGeneration (noun) package, which is now retired. Reference JasperFx.SourceGenerator (singular) instead — its version tracks the JasperFx package.

Install

<PackageReference Include="JasperFx.SourceGenerator"
                  PrivateAssets="all"
                  OutputItemType="Analyzer"
                  ReferenceOutputAssembly="false" />

Reference it as an analyzer/source-generator only — there's no runtime API. For OptionsDescription, apply the [GenerateDescription] attribute to a partial class that implements IDescribeMyself and a ToDescription() method is generated. The command-discovery and input-parser output is consumed transparently by JasperFx.CommandLine.

Documentation

Full docs at https://jasperfx.net.

Repo: github.com/JasperFx/jasperfx.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on JasperFx.SourceGenerator:

Package Downloads
WolverineFx

Build Robust Event Driven Architectures with Simpler Code

WolverineFx.Http

High Performance ASP.Net Core HTTP endpoints using the Wolverine runtime

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.7 0 5/29/2026
2.2.6 4 5/29/2026
2.2.5 174 5/29/2026
2.2.4 80 5/29/2026
2.2.3 947 5/29/2026
2.2.2 31 5/29/2026
2.2.1 1,592 5/29/2026
2.2.0 4,335 5/27/2026
2.1.4 48 5/27/2026
2.1.3 1,011 5/27/2026
2.1.2 144 5/27/2026
2.0.1 12,219 5/24/2026
2.0.0 103 5/21/2026
2.0.0-rc.3 54 5/21/2026
2.0.0-rc.2 50 5/20/2026
2.0.0-rc.1 46 5/20/2026
2.0.0-alpha.9 49 5/19/2026