JasperFx.SourceGenerator 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.
Showing the top 20 packages that depend on JasperFx.SourceGenerator.
| Packages | Downloads |
|---|---|
|
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
|
3 |
|
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
|
5 |
.NET Standard 2.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 2.2.0 | 0 | 05/27/2026 |
| 2.1.4 | 1 | 05/27/2026 |
| 2.1.3 | 4 | 05/27/2026 |
| 2.1.2 | 1 | 05/27/2026 |
| 2.0.1 | 1 | 05/27/2026 |
| 2.0.0 | 1 | 05/27/2026 |
| 2.0.0-rc.3 | 1 | 05/27/2026 |
| 2.0.0-rc.2 | 1 | 05/27/2026 |
| 2.0.0-rc.1 | 1 | 05/27/2026 |
| 2.0.0-alpha.9 | 1 | 05/27/2026 |