JasperFx.SourceGenerator 2.0.1

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 (1)

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

Package Downloads
WolverineFx

Build Robust Event Driven Architectures with Simpler Code

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 1,058 5/24/2026
2.0.0 41 5/21/2026
2.0.0-rc.3 38 5/21/2026
2.0.0-rc.2 34 5/20/2026
2.0.0-rc.1 30 5/20/2026
2.0.0-alpha.9 33 5/19/2026