I'm looking for an open source javascript engine for .NET. Thanks.
相关问题
- Is there a limit to how many levels you can nest i
- Sorting 3 numbers without branching [closed]
- How to toggle on Order in ReactJS
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
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.
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++.
You can check Jint which is a Javascript interpreter for .NET.
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...
You can take a look at this project http://javascriptdotnet.codeplex.com/ which look like what you are looking for.
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.
http://weblogs.asp.net/rosherove/archive/2009/08/11/script-script-sharp-solving-the-javascript-overload-problem.aspx