Abdul
Abdul

Reputation: 331

scripting with c# desktop application

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.

Upvotes: 1

Views: 2206

Answers (4)

Abdul
Abdul

Reputation: 331

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.

Upvotes: 1

light
light

Reputation: 421

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

Upvotes: 1

Alexander
Alexander

Reputation: 2318

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.

Upvotes: 1

Kishore Kumar
Kishore Kumar

Reputation: 12874

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.

Upvotes: 0

Related Questions