CS-Script

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
CS-Script
DeveloperOleg Shilo
Stable release
3.30.5.2 / 24 December 2020; 5 years ago (2020-12-24)
Repositorygithub.com/oleg-shilo/cs-script
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Platform.NET Framework
    Size10 MB
    TypeScripting language
    LicenseMIT License[1]
    Websitewww.cs-script.net

    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.

    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

    [edit | edit source]

    Simple deployment approach

    [edit | edit source]

    Just 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

    [edit | edit source]

    Scripts can be run on any system that has CLR installed (including Mono).

    [edit | edit source]

    CS-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

    [edit | edit source]

    Interpretation of any statement in the script is done only once, even if the statement is frequently used throughout the code.

    Strongly typed

    [edit | edit source]

    Strong 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

    [edit | edit source]

    The 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

    [edit | edit source]

    Can be run within WSH and can be mixed in one WSF file.

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]