CS-Script - The C# Script Engine
C# Script execution engine version 3.5.2 - Copyright (C) 2004-2013 Oleg Shilo.
What a masterful piece of work. Rarely do we find a piece of "technical art" that is hand-crafted anymore in this field.
What is CS-Script?
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/4.5) with full support on Mono.
CS-Script is an open-source initiative that is distributed under the license agreement, which can be found here. However commercial support is also available.
CS-Script combines the power and richness of C# and FCL with the flexibility of a scripting system. CS-Script can be useful for system and network administrators, developers and testers. For any one who needs an automation for solving variety of programming tasks.
The main idea of CS-Script is to allow "plain vanilla" C# code execution from both command-prompt and form any CLR application hosting the script engine.
Command-prompt execution:Explorer view:
C. Execution of the script by "aligning" it to the appropriate interface (DuckTyping).
Important aspect of such hosting model that the script execution is completely typesafe and IDEs like VisualStudio can provide full Intellisense support:
1. Script HelloScript.cs
2. Complete script hosting code
CS-Script can be hosted in NAnt environment. You can execute of both script files and embedded C# code (CDATA) from NAnt build scripts. The unrestricted bi-directional data exchange between NAnt runtime and CS-Script script code (e.g. C# code) can be achieved due to the advanced CS-Script hosting architecture.
CS-Script also brings you Dynamic Code Generation. The concept, which allows you to define C++ style macros in C#.
CS-Script comes with the full set of comprehensive documentation (tutorials, help in both CHM and PDF format, API reference guide).
CS-Script? - read about the
difference between CS-Script and other CLR based
scripting solutions. This is what you need to know
before making a
decision on using the CS-Script.
Why CS-Script? - read about the difference between CS-Script and other CLR based scripting solutions. This is what you need to know before making a decision on using the CS-Script.
Benefits of C# Scripting System:
Copyright (C) 2004-2013 Oleg Shilo