I'm looking for an open source javascript engine for .NET. Thanks.
-
For those who are just finding this page, there is now V8.NET at http://v8dotnet.codeplex.com/ as well. – James Wilkins May 21 '13 at 13:14
-
As of 2013 there is a new project maintained by microsoft called [ClearScript](http://clearscript.codeplex.com/). It works very well and supports multiple javascript engines including googles V8 engine. – GameScripting Jul 14 '13 at 14:40
-
Multithreaded Javascript Engine for .NET https://github.com/koculu/topaz – Ahmed Yasin Koculu Nov 14 '21 at 00:42
8 Answers
Try Javascript .NET:
http://javascriptdotnet.codeplex.com/
It implements Google V8. You can compile and run Javascript directly from .NET code with it, and supply CLI objects to be used by the Javascript code as well. And V8 is probably the best engine ever created in terms of performance, it generates native code from Javascript.

- 121
- 1
- 3
There was, at one time, a clone of JavaScript that ran on the DLR. But now it's dead.
A quick search turns up RemObjects Script and ECMAScript.NET. Might as well start there...

- 156,901
- 35
- 231
- 235
You might want to check out Managed JScript. It sounds like something you are looking for, but I don't really know much about it.
Edit: Sounds like Managed JScript is dead according to another post, so I would look into Google's V8.
You can also use Google's V8 Engine from .NET. Check out this other question, and the provided solution: Referencing Google's V8 engine from a .NET app. This example uses Managed C++.

- 1
- 1

- 4,688
- 3
- 23
- 25
If your point 'engine' is Javascript Parser,I think MS JScript.NET has the ability to do this,Take a look this article:http://www.odetocode.com/code/80.aspx

- 2,471
- 9
- 31
- 42
You can take a look at this project http://javascriptdotnet.codeplex.com/ which look like what you are looking for.

- 265
- 5
- 7
What do you mean 'engine for .net'?
Regardless, there is Microsofts AJAX Framework, or jQuery. Microsofts is integrated via controls and so on, but I prefer jQuery.

- 54,084
- 6
- 88
- 105
-
He means a JavaScript interpreter that runs on .NET. Like IronPython or IronRuby. – Ionuț G. Stan Aug 16 '09 at 03:06
-
Probably because the implementations I mentioned are written in C#, AFAIK anyway. – Ionuț G. Stan Aug 16 '09 at 03:11
-
Well, I don't really buy it, but anyway, I think we can agree the question isn't worded well :) Hopefully he clarifies. – Noon Silk Aug 16 '09 at 03:13
-
i think Alon might mean a .Net-based Javascript language interpreter and renderer. An engine that reads Javascript and executes the commands. Nothing about .Net with a quick Google search but you might consider porting from Java to .Net: http://www.mozilla.org/rhino/ – Paul Sasik Aug 16 '09 at 03:14
Here's a recent project I came across: script_sharp, to write JavaScript using the C# language. You write it in C# and it gets turned into JavaScript.

- 14,299
- 46
- 120
- 156
-
Never thought I'd downvote a post about script#... It's an excellent tool (possibly the best thing that has happened to MS web development since ASP.NET, but it does not target the problem the question is about. – erikkallen Oct 26 '09 at 13:21