Norvell's Public Machinations
Miss any of our Open RFC calls?Watch the recordings here! »

coreclr-hosting

0.7.9 • Public • Published

coreclr-hosting

Native node module for hosting the dotnet core runtime.

It utilizes the dotnet core hosting API to load and execute managed code from withing node.

It also provides the native implementation utilized by the NodeHostEnvironment package to interact with the node runtime from managed code.

Installation

npm install --save coreclr-hosting

Usage

To load and execute a managed assembly a single function is provided:

const coreclrHosting = require('coreclr-hosting');
 
var exitCode = coreclrHosting.runCoreApp('path/to/published/assembly', 'NameOfAssembly.dll');

Currently only published assemblies containing the dotnet runtime next to them are supported.

Keywords

Install

npm i coreclr-hosting

DownloadsWeekly Downloads

7

Version

0.7.9

License

MIT

Unpacked Size

270 kB

Total Files

30

Last publish

Collaborators

  • avatar