Js2IL.Runtime
0.9.3
See the version list below for details.
dotnet add package Js2IL.Runtime --version 0.9.3
NuGet\Install-Package Js2IL.Runtime -Version 0.9.3
<PackageReference Include="Js2IL.Runtime" Version="0.9.3" />
<PackageVersion Include="Js2IL.Runtime" Version="0.9.3" />
<PackageReference Include="Js2IL.Runtime" />
paket add Js2IL.Runtime --version 0.9.3
#r "nuget: Js2IL.Runtime, 0.9.3"
#:package Js2IL.Runtime@0.9.3
#addin nuget:?package=Js2IL.Runtime&version=0.9.3
#tool nuget:?package=Js2IL.Runtime&version=0.9.3
Js2IL.Runtime
Js2IL.Runtime is the runtime support package for executing JS2IL-compiled assemblies and hosting compiled modules from .NET.
It ships the JavaScriptRuntime.dll assembly plus the Js2IL.Runtime hosting APIs, including JsEngine.
Which package should I use?
Js2IL.Runtime- Use this when your application needs the runtime support library or the public hosting APIs used to load compiled modules.
Js2IL.SDK- Use this when your project should compile JavaScript during
dotnet build.
- Use this when your project should compile JavaScript during
Js2IL.Core- Use this when you need the compiler as a reusable .NET library.
js2il- Use this when you want the standalone CLI/global tool for manual compilation.
Official releases publish Js2IL.Runtime, js2il, Js2IL.Core, and Js2IL.SDK together at the same version. Keep the versions aligned when you mix them in one workflow.
Install
<ItemGroup>
<PackageReference Include="Js2IL.Runtime" Version="VERSION" />
</ItemGroup>
Package surface
- NuGet package:
Js2IL.Runtime - Public namespace:
Js2IL.Runtime - Runtime assembly copied next to compiled outputs:
JavaScriptRuntime.dll
Hosting compiled JavaScript from C#
If you want to load a compiled module from C#, start with the hosting docs:
The main entry point is Js2IL.Runtime.JsEngine, which can discover module ids and load typed or dynamic exports from compiled assemblies.
Links
- Hosting docs: https://github.com/tomacox74/js2il/blob/master/docs/hosting/Index.md
- Source, issues, docs: https://github.com/tomacox74/js2il
- 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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Js2IL.Runtime:
| Package | Downloads |
|---|---|
|
Js2IL.Core
Reusable js2il compiler library for embedding JavaScript-to-.NET compilation in custom .NET tools and hosts. |
GitHub repositories
This package is not used by any popular GitHub repositories.