What is the best way to make a .NET UI application a script?

I have a .NET application and you want to allow users to write macros.

Any easy-to-use language will do.

However, I do not want to write a compiler, interpreter, debugger.

I know there are many options online, but most of the solutions seem awkward.

What is my best option?

+4
source share
3 answers

You might want to learn Visual Studio Tools for Applications (VSTA) . I looked at it a couple of years ago. This is similar to the new version of VBA, except that the end user can program in any .NET language and use the .NET framework base class library. In addition, you can distribute a visual studio IDE, including a compiler and debugger.

+1
source

You can write scripts in C # code and compile them at runtime using CSharpCodeCompiler . However, in the next application I will write that I will use scripts, I will probably look for such support through DLR (dynamic runtime). This allows you (for example) to write a script in IronPython. The following is an example.

0
source

If you do not want to write anything, you must use one of many existing languages.

If by "macros" you mean things like recording user input, pressing buttons, etc., you should explore .Net "Automating the user interface . " It also allows users to launch your application using assistive technologies such as voice recognition or screen readers.

0
source

All Articles