Quantcast
Channel: Javascript .NET
Viewing all articles
Browse latest Browse all 137

Updated Wiki: Home

$
0
0

Project Description

Javascript .NET integrates Google's V8 Javascript engine and exposes it to the CLI environment. Javascript .NET compiles (at runtime) and executes scripts directly from .NET code. It allows CLI objects to be exposed and manipulated directly from the executed Javascript.

Source Code

The source code for this project is now hosted at Github. The code in the Subversion repository here is old.

Quick Start

To get started, please read this quick integration overview in the documentation section.

Sample "Hello World" running through Javascript

// Initialize a contextusing (JavascriptContext context = new JavascriptContext()) {

    // Setting external parameters for the context
    context.SetParameter("console", new SystemConsole());
    context.SetParameter("message", "Hello World !");
    context.SetParameter("number", 1);

    // Scriptstring script = @"
        var i;
        for (i = 0; i < 5; i++)
            console.Print(message + ' (' + i + ')');
        number += i;
    ";

    // Running the script
    context.Run(script);

    // Getting a parameter
    Console.WriteLine("number: " + context.GetParameter("number"));
}

Downloads

Click here to get the latest release.

Deployment

Javascript .NET is deployed as a part of your application and fits inside a single assembly.

People behind Javascript .NET

Noesis Innovation

The Javascript .NET project was brought to you by the people at Noesis Innovation. Unfortunately they lost interest, so now other people take care of it.

Viewing all articles
Browse latest Browse all 137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>