Js2IL.Runtime 0.9.3

There is a newer version of this package available.
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
                    
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="Js2IL.Runtime" Version="0.9.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Js2IL.Runtime" Version="0.9.3" />
                    
Directory.Packages.props
<PackageReference Include="Js2IL.Runtime" />
                    
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 Js2IL.Runtime --version 0.9.3
                    
#r "nuget: Js2IL.Runtime, 0.9.3"
                    
#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 Js2IL.Runtime@0.9.3
                    
#: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=Js2IL.Runtime&version=0.9.3
                    
Install as a Cake Addin
#tool nuget:?package=Js2IL.Runtime&version=0.9.3
                    
Install as a Cake Tool

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.
  • 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.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
0.9.6 37 4/2/2026
0.9.5 67 3/29/2026
0.9.3 82 3/15/2026
0.9.2 74 3/14/2026