JasperFx.RuntimeCompiler 5.0.0-alpha.1

This is a prerelease version of JasperFx.RuntimeCompiler.
dotnet add package JasperFx.RuntimeCompiler --version 5.0.0-alpha.1
                    
NuGet\Install-Package JasperFx.RuntimeCompiler -Version 5.0.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JasperFx.RuntimeCompiler" Version="5.0.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JasperFx.RuntimeCompiler" Version="5.0.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="JasperFx.RuntimeCompiler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JasperFx.RuntimeCompiler --version 5.0.0-alpha.1
                    
#r "nuget: JasperFx.RuntimeCompiler, 5.0.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JasperFx.RuntimeCompiler@5.0.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JasperFx.RuntimeCompiler&version=5.0.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=JasperFx.RuntimeCompiler&version=5.0.0-alpha.1&prerelease
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on JasperFx.RuntimeCompiler:

Package Downloads
Marten

.NET Transactional Document DB and Event Store on PostgreSQL

WolverineFx

Build Robust Event Driven Architectures with Simpler Code

JasperFx.CodeGeneration.Commands

Command line utilities for managing Lamar dynamically generated code

Portlogics.WolverineFx

Build Robust Event Driven Architectures with Simpler Code

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
5.0.0-alpha.1 1,592 5/14/2026
4.5.0 130,961 4/28/2026
4.4.0 1,088,328 2/14/2026
4.3.2 194,471 1/29/2026
4.3.1 391,412 12/19/2025
4.3.0 258,889 12/11/2025
4.2.1 135,646 12/5/2025
4.2.0 402,291 11/11/2025
4.1.0 127,681 10/20/2025
4.0.0 1,502,217 6/1/2025
4.0.0-beta-3 7,145 5/27/2025
4.0.0-beta-2 944 5/22/2025
4.0.0-beta-1 629 5/7/2025
4.0.0-alpha-18 241 5/7/2025
4.0.0-alpha-17 229 4/25/2025
4.0.0-alpha-16 262 4/22/2025
4.0.0-alpha-15 278 4/13/2025
4.0.0-alpha-14 237 4/1/2025
2.0.0-alpha.2 5,210 5/12/2026
2.0.0-alpha.1 1,670 5/10/2026
Loading failed