-
Notifications
You must be signed in to change notification settings - Fork 0
API Host CompilationMode
Liu.Yandong.Hanks edited this page Aug 21, 2026
·
3 revisions
Controls how generated code is emitted and loaded.
Namespace: AuroraScript. Kind: enum.
Back to .NET Host API Reference
CompilationMode selects the emit strategy for compiled scripts. Set it through EngineOptions.WithCompiler, either as builder.Mode or builder.WithMode(...).
var options = EngineOptions.Default.WithCompiler(builder =>
builder.Mode = CompilationMode.Dynamic);| Value | Description |
|---|---|
Persistence |
Persists compiled assembly output to a file or stream and can save DLL/PDB. |
OnlyRun |
Compiles and runs in memory only and does not provide standard PDB debugging. |
Dynamic |
Compiles to a dynamic method for ordinary high-performance execution. |
Persists compiled assembly output to a file or stream and can save DLL/PDB.
var value = CompilationMode.Persistence;Compiles and runs in memory only and does not provide standard PDB debugging.
var value = CompilationMode.OnlyRun;Compiles to a dynamic method for ordinary high-performance execution.
var value = CompilationMode.Dynamic;AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License