Search

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.

Quick Start

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

Sample "Hello World" running through Javascript

// Initialize a context
JavascriptContext context = new JavascriptContext();

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

// Script
string 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

Other projects by Noesis Innovation

Discover Google's WebP image format. WebP for .NET is the very first official release of this new format on the Windows platform.
Last edited Feb 4 at 3:53 AM by oliverbock, version 40
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.2.15.18416