JasperFx.SourceGenerator
2.0.1
dotnet add package JasperFx.SourceGenerator --version 2.0.1
NuGet\Install-Package JasperFx.SourceGenerator -Version 2.0.1
<PackageReference Include="JasperFx.SourceGenerator" Version="2.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="JasperFx.SourceGenerator" Version="2.0.1" />
<PackageReference Include="JasperFx.SourceGenerator"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add JasperFx.SourceGenerator --version 2.0.1
#r "nuget: JasperFx.SourceGenerator, 2.0.1"
#:package JasperFx.SourceGenerator@2.0.1
#addin nuget:?package=JasperFx.SourceGenerator&version=2.0.1
#tool nuget:?package=JasperFx.SourceGenerator&version=2.0.1
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 theJasperFx.SourceGeneration(noun) package, which is now retired. ReferenceJasperFx.SourceGenerator(singular) instead — its version tracks theJasperFxpackage.
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.
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 |