just wondering if anyone has ever tried embedding and actually integrating any js engine into the .net environment. I could find and actually use (after a LOT of pain and effort, since it’s pretty outdated and not quite finished) spidermonkey-dotnet project. Anyone with experience in this area? Engines like SquirrelFish, V8..
// c# class
public class A
public string Hello(string msg)
return msg + ” whatewer”;
// js snippet
var a = new A();
console.log(a.Hello(‘Call me’)); // i have a console.log implemented, don’t worry, it’s not a client-side code 🙂
The project has been entirely rewritten and is now hosted on Github at https://github.com/sebastienros/jint
You might also be interested in Microsoft ClearScript
which is hosted on GitHub and published under the Ms-Pl licence.
ps: It also support JScript and VBScript but we were not interested by this old stuff.
ps: It is compatible with .NET 4.0 and 4.5+
Anybody just tuning in check out Jurassic as well:
edit: this has moved to github (and seems active at first glance)
You can try ironJS, looks promising although it is in heavy development. https://github.com/fholm/IronJS
Personally, I thought it would be cool to integrate V8 somehow, but I didn’t get past downloading the source code; wish I had the time to actually do something with it.