1

I have a C# desktop application which supports new C# plugins.

I want to change existing C# application capable of accepting scripts as plugin.

Scripts may be a JavaScript,Windows script Host (WSh) or any script. (It must be a plugin and want to compile and run at run-time)

I want to know whether C# has script compile and run functionality. If you know any supporting dll, good links or helpfull projects, please let me know.

2

4 Answers 4

1

From the CS-Script homepage:

"CS-Script is a CLR (Common Language Runtime) based scripting system which uses ECMA-compliant C# as a programming language. CS-Script currently targets Microsoft implementation of CLR (.NET 2.0/3.0/3.5/4.0) with full support on Mono."

Plus, it's open source too!

Another option would be to implement IronPython.

Sign up to request clarification or add additional context in comments.

Comments

1

Take a look at Dynamic Language Runtime, which allows you to embed languages like IronPython and IronRuby in your program.

Here is a webpage about how to embed IronPython in a C# program.

See also Embedding the DLR on Voidspace

Comments

1

I found http://jint.codeplex.com/ useful for javascript solution with C# desktop application, minimum level interaction like javascript to C# and C# javascript succeeded.

Comments

0

C# doesn't have inbuilt compilers for JavaScript or any other script, You have to attach your own compiler with your application and invoke that at runtime.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.