Jroc.Runtime
0.12.37
dotnet add package Jroc.Runtime --version 0.12.37
NuGet\Install-Package Jroc.Runtime -Version 0.12.37
<PackageReference Include="Jroc.Runtime" Version="0.12.37" />
<PackageVersion Include="Jroc.Runtime" Version="0.12.37" />
<PackageReference Include="Jroc.Runtime" />
paket add Jroc.Runtime --version 0.12.37
#r "nuget: Jroc.Runtime, 0.12.37"
#:package Jroc.Runtime@0.12.37
#addin nuget:?package=Jroc.Runtime&version=0.12.37
#tool nuget:?package=Jroc.Runtime&version=0.12.37
Jroc.Runtime
Jroc.Runtime provides
JavaScriptRuntime.dll, the execution support library
for JROC-generated assemblies. It is a dependency of the supported workflows,
not a separate assembly-loading workflow.
Choose your workflow
jroc: compile and run JavaScript on the command line. The compiler places the runtime beside generated output.Jroc.SDK: compile known scripts during MSBuild and call generatedImport/RunAPIs. The SDK restores and deploys the runtime transitively.Jroc.Core: compile source not known until runtime usingJrocInMemoryCompiler.
Official releases publish Jroc.Runtime, jroc, Jroc.Core, and Jroc.SDK
together at the same version. Keep their versions aligned.
In-memory execution dependency
A host compiling and executing runtime-supplied scripts can reference:
<ItemGroup>
<PackageReference Include="Jroc.Core" Version="VERSION" />
<PackageReference Include="Jroc.Runtime" Version="VERSION" />
</ItemGroup>
Use JrocInMemoryCompiler.CompileAndLoadModule(...) to obtain the live module.
Its exports provide dynamic access or explicit Get / Invoke operations
after casting the non-generic module's object-typed Exports property to
JsDynamicExports.
The Jroc.Runtime namespace includes the callable and exception types used
at this boundary.
For example, in a console project with the references above:
using Jroc;
using Jroc.Runtime;
var path = Path.Combine(Path.GetTempPath(), "jroc-input", "answer.js");
using var module = JrocInMemoryCompiler.CompileAndLoadModule(
new JrocInMemoryCompileRequest(path) { SourceText = "exports.answer = 42;" });
var exports = (JsDynamicExports)module.Exports;
Console.WriteLine(exports.Get("answer"));
This prints 42. The source path need not exist when SourceText is supplied.
Dispose the module when finished; in-memory execution is not a sandbox, so
only run trusted scripts in the host process.
For MSBuild-generated imports, consume the types generated in the compiled
JavaScript assembly. A normal Jroc.SDK host does not need a direct runtime
package reference or manual runtime loading.
.NET compatibility
The runtime library targets net10.0 and can be used by .NET 10 and .NET 11
hosts. Generated assemblies also carry their own framework requirements:
in-memory compilation follows the executing .NET runtime, while Jroc.SDK
follows the consuming project's target framework. The CLI defaults to the
executing runtime, but --target-framework with a matching reference pack
can select net10.0 or net11.0. Installing this runtime package does not
make output targeting .NET 11 executable on .NET 10.
For supported JavaScript features and current limitations, see the ECMAScript support index.
Links
- SDK docs: https://github.com/tomacox74/js2il/blob/master/docs/sdk/Index.md
- Migrating from JS2IL: https://github.com/tomacox74/js2il/blob/master/docs/sdk/LegacyPackageMigration.md
- Release history: https://github.com/tomacox74/js2il/blob/master/CHANGELOG.md
- Source: https://github.com/tomacox74/js2il
- Issues: https://github.com/tomacox74/js2il/issues
- License: Apache-2.0
| 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. |
-
net10.0
- Acornima (>= 1.7.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Jroc.Runtime:
| Package | Downloads |
|---|---|
|
Jroc.Core
In-memory JavaScript-to-.NET compiler for .NET applications with runtime-supplied scripts. |
|
|
Jroc.SDK
MSBuild SDK package for compiling JavaScript sources into .NET assemblies during dotnet build. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.37 | 0 | 11/12/2026 |
| 0.12.36 | 61 | 11/12/2026 |
| 0.12.35 | 124 | 11/4/2026 |
| 0.12.34 | 139 | 10/26/2026 |
| 0.12.33 | 139 | 10/17/2026 |
| 0.12.32 | 130 | 10/15/2026 |
| 0.12.31 | 128 | 10/15/2026 |
| 0.12.30 | 142 | 9/30/2026 |
| 0.12.29 | 141 | 9/26/2026 |
| 0.12.28 | 142 | 9/24/2026 |
| 0.12.27 | 137 | 9/23/2026 |
| 0.12.26 | 148 | 9/19/2026 |
| 0.12.25 | 133 | 9/18/2026 |
| 0.12.24 | 132 | 9/18/2026 |
| 0.12.23 | 136 | 9/16/2026 |
| 0.12.22 | 129 | 9/16/2026 |
| 0.12.21 | 141 | 9/9/2026 |
| 0.12.20 | 138 | 9/8/2026 |
| 0.12.19 | 150 | 9/8/2026 |
| 0.12.18 | 152 | 9/2/2026 |
Release history: https://github.com/tomacox74/js2il/blob/master/CHANGELOG.md