Script.NET

Script.NET is a scripting engine which can be embedded into .NET framework applications to perform custom functionality in run-time. It works like VBA in Microsoft Office Applications. The difference is that Script .NET may use custom object model, different for each application. Script .NET is written in C#.

Script.NET may be tested on-line: Test Now.
Script.NET Video Tutorials.
Latest news, release announcements and samples may be found on Script.NET Blog.

The key principles of Script .NET are:

This page is no longer primary source of information about Script.NET project
Please use following link.


The idea of Script .NET was born 17 September 2007. Then:

Previous version of Script.NET parser was based on C# Compiler Tools. The latest version of the language and all future releases will employ Irony Compiler Tools.
Irony has important benefits such as:

Getting Started

All you need to start working with Script.NET is to add reference to IronyScriptDotNet.dll and Irony.dll,

Example IronyScript.NET (in C# code):

using ScriptNET;
...
RuntimeHost.Initialize();
...
Script.RunCode(@"About();");


The best way to start using Script.NET is to watch following screencast.




In previous version of Script.NET - add reference to ScriptDotNet.dll,
Note: this code is obsole and no longer supported
Example Script.NET (in C# code):

using ScriptDotNet;
Script s = Script.Compile(
   "MessageBox.Show('Hello .NET! This is Script .NET');");
s.AddType("MessageBox", typeof(MessageBox));
s.Execute();

See Also

Language Description->Types