Reputation: 10040
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?
Upvotes: 0
Views: 670
Reputation: 89
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
Upvotes: 0