CS-Script is a free and open-source scripting platform that enables creating scripts in ECMA-compliant C# syntax. These scripts have access to .NET Framework or Mono APIs.
Developer(s) | Oleg Shilo |
---|---|
Stable release | 3.30.5.2
/ 24 December 2020 |
Repository | github |
Platform | .NET Framework |
Size | 10 MB |
Type | Scripting language |
License | MIT License[1] |
Website | www |
CS-Script offers standalone script execution as well as hosting the script engine from CLR apps. A newer edition of this product, called CS-Script.Core works with .NET.
Existing .NET development tools (e.g. Visual Studio and Sharp Develop) can be used, allowing editing and debugging scripts within traditional .NET-aware development environments. Additionally, CS-Script support can be added to Notepad++ or Visual Studio Code via plugins.[2][3]
FlashDevelop uses CS-Script as its internal scripting engine.[4]
Benefits
editSimple deployment approach
editJust bring both the script and engine file (about 100 KB) onto the system that has .NET runtime installed, and the script can be run.
Portability
editScripts can be run on any system that has CLR installed (including Mono).
Base language is a full featured C#
editCS-Script is a truly object-oriented language that supports VB.NET, C++/CLI and J#. All .NET functionality is available (including FCL, COM Interop, Remoting, WPF, WCF). Easily available debugger and rich IDE (Visual Studio or third-party IDEs). Execution model within the script is the same as for any .NET application: static void Main().
Optimized interpretation
editInterpretation of any statement in the script is done only once, even if the statement is frequently used throughout the code.
Strongly typed
editStrong typing is a luxury not available for most of the scripting languages. All software development tasks can be done in the same language. GUI development for script application becomes easy.
Extensibility
editThe scripting system can be extended by using new assemblies written in any .NET languages or COM components. Any script can be easily converted into an application and vice versa. Functionality of any CLR application can be extended with scripting.[5]
Script hosting
editReferences
edit- ^ Shilo, Oleg (19 January 2018). "License". oleg-shilo/cs-script – via GitHub.
- ^ "CS-Script - Visual Studio Marketplace". marketplace.visualstudio.com. Retrieved 2019-07-13.
- ^ Shilo, Oleg (2019-06-27), CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64): oleg-shilo/cs-script.npp, retrieved 2019-07-13
- ^ "Scripting - FlashDevelop". www.flashdevelop.org. Retrieved 2019-07-13.
- ^ Mascarenhas, Fabio (2004-01-01). "LuaInterface: Scripting the .NET CLR with Lua".
{{cite journal}}
: Cite journal requires|journal=
(help)
External links
edit- CS-Script as part of Wuji
- CS-Script as part of BRE API
- CS-Script as part of K2 API
- CS-Script as part of AyaNova (Official Website: AyaNova service management software)