JasperFx.RuntimeCompiler 5.0.0

JasperFx.RuntimeCompiler

Roslyn-based runtime code-generation backend for the Critter Stack. Compiles in-memory C# at runtime and loads the resulting assembly into the host process — used by Marten, Wolverine, and Polecat for dynamic code paths (LINQ compilation, message handlers, document storage).

Installing this package is opt-in. Apps that pre-generate all code (dotnet run -- codegen write) and run in TypeLoadMode.Static can omit JasperFx.RuntimeCompiler entirely and ship without Roslyn in the production bundle — the foundation for PublishAot=true deployments.

Usage

Register the runtime compiler service in DI to opt in:

services.AddSingleton<IAssemblyGenerator, AssemblyGenerator>();

When GenerationRules.TypeLoadMode is Dynamic or Auto, codegen will route through AssemblyGenerator to compile in-memory.

Documentation

Full docs at https://jasperfx.net.

Repo: github.com/JasperFx/jasperfx.

Showing the top 20 packages that depend on JasperFx.RuntimeCompiler.

Packages Downloads
JasperFx.CodeGeneration.Commands
Command line utilities for managing Lamar dynamically generated code
70
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
61
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
62
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
63
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
65
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
66
WolverineFx
Next Generation .NET Mediator and Message Bus
62
WolverineFx
Next Generation .NET Mediator and Message Bus
63
WolverineFx
Next Generation .NET Mediator and Message Bus
65
WolverineFx
Next Generation .NET Mediator and Message Bus
66

Version Downloads Last updated
5.0.0 19 05/23/2026
5.0.0-rc.3 14 05/24/2026
5.0.0-rc.2 15 05/24/2026
5.0.0-rc.1 15 05/24/2026
5.0.0-alpha.8 15 05/24/2026
5.0.0-alpha.5 13 05/24/2026
5.0.0-alpha.4 12 05/24/2026
5.0.0-alpha.3 16 05/24/2026
5.0.0-alpha.2 13 05/19/2026
5.0.0-alpha.1 18 05/15/2026
4.5.0 23 04/29/2026
4.4.0 32 02/16/2026
4.3.2 47 01/30/2026
4.3.1 49 12/23/2025
4.3.0 47 12/13/2025
4.2.1 50 12/11/2025
4.2.0 47 12/11/2025
4.1.0 46 12/11/2025
4.0.0 50 12/11/2025
4.0.0-beta-3 49 12/11/2025
4.0.0-beta-2 48 12/11/2025
4.0.0-beta-1 47 12/11/2025
4.0.0-alpha-9 54 12/11/2025
4.0.0-alpha-8 47 12/11/2025
4.0.0-alpha-7 46 12/11/2025
4.0.0-alpha-6 50 12/11/2025
4.0.0-alpha-5 49 12/11/2025
4.0.0-alpha-4 44 12/11/2025
4.0.0-alpha-3 44 12/11/2025
4.0.0-alpha-2 51 12/11/2025
4.0.0-alpha-18 48 12/11/2025
4.0.0-alpha-17 50 12/11/2025
4.0.0-alpha-16 47 12/11/2025
4.0.0-alpha-15 47 12/11/2025
4.0.0-alpha-14 41 12/11/2025
4.0.0-alpha-13 49 12/11/2025
4.0.0-alpha-12 47 12/11/2025
4.0.0-alpha-11 49 12/11/2025
4.0.0-alpha-10 50 12/11/2025
4.0.0-alpha-1 41 12/11/2025
3.7.2 53 12/11/2025
3.7.1 38 12/11/2025
3.7.0 44 12/11/2025
3.6.0 48 12/11/2025
3.5.4 44 12/11/2025
3.5.3 44 12/11/2025
3.5.2 47 12/11/2025
3.5.1 46 12/11/2025
3.5.0 48 12/11/2025
3.4.1 47 12/11/2025
3.4.0 50 12/11/2025
3.2.0 50 12/11/2025
3.1.1 44 12/11/2025
3.1.0 49 12/11/2025
3.0.2 50 12/11/2025
3.0.1 43 12/11/2025
3.0.0 46 12/11/2025
2.3.1 44 12/11/2025
2.3.0 48 12/11/2025
2.2.1 52 12/11/2025
2.2.0 40 12/11/2025
2.1.2 48 12/11/2025
2.1.1 47 12/11/2025
2.1.0 49 12/11/2025
2.0.0 48 12/11/2025
2.0.0-alpha.2 14 05/15/2026
2.0.0-alpha.1 16 05/12/2026
1.1.1 49 12/11/2025
1.1.0 48 12/11/2025
1.0.1 51 12/11/2025
1.0.0 48 12/11/2025
0.9.5 50 12/11/2025
0.9.4 43 12/11/2025
0.9.3 48 12/11/2025
0.9.2 49 12/11/2025
0.9.1 49 12/11/2025
0.9.0 53 12/11/2025