tags:

views:

191

answers:

2

Possible Duplicate:
Embedding JavaScript engine into .NET (C#)

Is there an easy way to embed Javascript in a C# application?

I want to make my C# application scriptable.

I have used Lua for this in the past but would like to use Javascript in this instance. LuaInterface is a nice C# wrapper for the C Lua API and it made it really easy to embed Lua in C# and a lot less painful than writing a Managed C++ wrapper for the Lua API (I have tried that as well).

Are there any C# libraries around for embedding Javascript that are as easy to use as LuaInterface?

A: 

You may consider working with the DLR (Dynamic Language Runtime).

Managed JScript is built on the top of DLR (can't insert second link as I'm a new user):

http://blogs.msdn.com/deepak/archive/2007/05/02/managed-jscript-is-availaible.aspx

emvy
Managed JScript would be great, but it sounds like it is no longer available: http://stackoverflow.com/questions/775339/where-can-you-download-managed-jscript-for-the-dlr
Ashley Davis
+3  A: 

There is one: Jint (http://jint.codeplex.com)

Sébastien Ros