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
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
958
WolverineFx
Build Robust Event Driven Architectures with Simpler Code
1 872
WolverineFx.RuntimeCompilation
Opt-in runtime Roslyn compilation support for Wolverine. Add this package and call opts.UseRuntimeCompilation() to enable on-the-fly handler/middleware code generation in development mode. Production deployments that pre-generate code (TypeLoadMode.Static) do not need this package and ship without Roslyn — smaller binaries, faster cold starts, and AOT-readiness. See issue #1577.
13

Version Downloads Last updated
5.0.0 9 2026-08-28
5.0.0-rc.3 0 2026-05-21
5.0.0-rc.2 0 2026-05-20
5.0.0-rc.1 0 2026-05-20
5.0.0-alpha.8 0 2026-05-19
5.0.0-alpha.5 0 2026-05-19
5.0.0-alpha.4 0 2026-05-19
5.0.0-alpha.3 0 2026-05-19
5.0.0-alpha.2 0 2026-05-19
5.0.0-alpha.1 0 2026-05-14
4.5.0 972 2026-05-25
4.4.0 0 2026-02-14
4.3.2 0 2026-01-29
4.3.1 1 872 2026-01-06
4.3.0 0 2025-12-11
4.2.1 0 2025-12-05
4.2.0 0 2025-11-11
4.1.0 0 2025-10-20
4.0.0 0 2025-06-01
4.0.0-beta-3 0 2025-05-27
4.0.0-beta-2 0 2025-05-22
4.0.0-beta-1 0 2025-05-07
4.0.0-alpha-9 0 2025-02-09
4.0.0-alpha-8 0 2025-02-08
4.0.0-alpha-7 0 2025-02-07
4.0.0-alpha-6 0 2025-02-06
4.0.0-alpha-5 0 2025-02-06
4.0.0-alpha-4 0 2025-02-05
4.0.0-alpha-3 0 2025-02-05
4.0.0-alpha-2 0 2025-02-05
4.0.0-alpha-18 0 2025-05-07
4.0.0-alpha-17 0 2025-04-25
4.0.0-alpha-16 0 2025-04-22
4.0.0-alpha-15 0 2025-04-13
4.0.0-alpha-14 0 2025-04-01
4.0.0-alpha-13 0 2025-03-14
4.0.0-alpha-12 0 2025-02-27
4.0.0-alpha-11 0 2025-02-18
4.0.0-alpha-10 0 2025-02-14
4.0.0-alpha-1 0 2025-02-05
3.7.2 0 2024-12-26
3.7.1 0 2024-11-18
3.7.0 0 2024-11-18
3.6.0 0 2024-09-10
3.5.4 0 2024-06-18
3.5.3 0 2024-05-08
3.5.2 0 2024-05-08
3.5.1 0 2024-03-21
3.5.0 0 2024-02-19
3.4.1 0 2024-01-15
3.4.0 0 2023-11-14
3.2.0 0 2023-10-09
3.1.1 0 2023-09-25
3.1.0 0 2023-09-11
3.0.2 0 2023-08-14
3.0.1 0 2023-07-05
3.0.0 0 2023-04-29
2.3.1 0 2023-04-11
2.3.0 0 2023-04-03
2.2.1 0 2023-03-22
2.2.0 0 2023-03-22
2.1.2 0 2023-03-17
2.1.1 0 2023-03-17
2.1.0 0 2023-03-16
2.0.0 0 2023-03-03
2.0.0-alpha.2 0 2026-05-12
2.0.0-alpha.1 0 2026-05-10
1.1.1 0 2023-02-16
1.1.0 0 2023-02-09
1.0.1 0 2023-01-09
1.0.0 0 2022-12-06
0.9.5 0 2022-12-05
0.9.4 0 2022-12-05
0.9.3 0 2022-12-05
0.9.2 0 2022-12-05
0.9.1 0 2022-12-04
0.9.0 0 2022-12-04