views:

411

answers:

1

I worked for a company that had both Java and .NET implementations of an application. The app allowed for end-user customization of processing and business rules using scripts. The Java version supported JavaScript using the Rhino engine. The .NET app required VBScript. I would like to do something similar using .NET, but I would prefer to use JavaScript. I have searched but I am having a hard time finding anything like Rhino that will work within the .NET runtime. Do any of you know of or have experience using a JavaScript engine in .NET?

+1  A: 

You should probably use JScript - Microsoft's implementation of JavaScript, which is a full .NET language.

EDIT: it turns out the question is a duplicate. Some specific suggestions: use Managed JScript, or use MSScriptControl.ScriptControlClass in JScript mode.

orip
What would I use to interpret the JScript? I'm looking for a .NET library that could take the script and interpret it on the server to allow end-user scripting capabilities.
Andrew Van Slaars
@Andrew: I linked to a previous question (with answers) and to some specific possible solutions.
orip