JasperFx.RuntimeCompiler
6.0.0
dotnet add package JasperFx.RuntimeCompiler --version 6.0.0
NuGet\Install-Package JasperFx.RuntimeCompiler -Version 6.0.0
<PackageReference Include="JasperFx.RuntimeCompiler" Version="6.0.0" />
<PackageVersion Include="JasperFx.RuntimeCompiler" Version="6.0.0" />
<PackageReference Include="JasperFx.RuntimeCompiler" />
paket add JasperFx.RuntimeCompiler --version 6.0.0
#r "nuget: JasperFx.RuntimeCompiler, 6.0.0"
#:package JasperFx.RuntimeCompiler@6.0.0
#addin nuget:?package=JasperFx.RuntimeCompiler&version=6.0.0
#tool nuget:?package=JasperFx.RuntimeCompiler&version=6.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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- JasperFx (>= 3.0.0)
- Microsoft.CodeAnalysis (>= 5.9.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
- Microsoft.CodeAnalysis.Scripting (>= 5.9.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
-
net11.0
- JasperFx (>= 3.0.0)
- Microsoft.CodeAnalysis (>= 5.9.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
- Microsoft.CodeAnalysis.Scripting (>= 5.9.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on JasperFx.RuntimeCompiler:
| Package | Downloads |
|---|---|
|
JasperFx.CodeGeneration.Commands
Command line utilities for managing Lamar dynamically generated code |
|
|
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. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on JasperFx.RuntimeCompiler:
| Repository | Stars |
|---|---|
|
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
|
|
|
JasperFx/wolverine
Supercharged .NET server side development!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.0 | 3,627 | 11/10/2026 |
| 6.0.0--alpha.1 | 47 | 11/10/2026 |
| 5.1.0 | 61,838 | 11/5/2026 |
| 5.0.1 | 136,935 | 10/28/2026 |
| 5.0.0 | 3,311,780 | 5/21/2026 |
| 5.0.0-rc.3 | 332 | 5/21/2026 |
| 5.0.0-rc.2 | 1,131 | 5/20/2026 |
| 5.0.0-rc.1 | 109 | 5/20/2026 |
| 5.0.0-alpha.8 | 160 | 5/19/2026 |
| 5.0.0-alpha.5 | 895 | 5/19/2026 |
| 5.0.0-alpha.4 | 104 | 5/19/2026 |
| 5.0.0-alpha.3 | 106 | 5/19/2026 |
| 5.0.0-alpha.2 | 101 | 5/19/2026 |
| 5.0.0-alpha.1 | 3,174 | 5/14/2026 |
| 4.5.0 | 2,368,490 | 4/28/2026 |
| 4.4.0 | 2,122,149 | 2/14/2026 |
| 4.3.2 | 331,918 | 1/29/2026 |
| 4.3.1 | 582,805 | 12/19/2025 |
| 2.0.0-alpha.2 | 6,444 | 5/12/2026 |
| 2.0.0-alpha.1 | 1,929 | 5/10/2026 |