CS-Script

{{Short description|Scripting platform}}

{{Infobox software

| name = CS-Script

| developer = Oleg Shilo

| latest release version = 3.30.5.2

| latest release date = {{Start date and age|2020|12|24|df=yes}}

| repo = {{url|https://github.com/oleg-shilo/cs-script}}

| platform = .NET Framework

| size = 10 MB

| genre = Scripting language

| license = MIT License{{Cite web |url=https://github.com/oleg-shilo/cs-script/blob/master/LICENSE |title=License |work=oleg-shilo/cs-script |via=GitHub |first=Oleg |last=Shilo |date=19 January 2018}}

| website = {{URL|https://www.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.{{Cite web|url=https://marketplace.visualstudio.com/items?itemName=oleg-shilo.cs-script|title=CS-Script - Visual Studio Marketplace|website=marketplace.visualstudio.com|access-date=2019-07-13}}{{Citation|last=Shilo|first=Oleg|title=CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64): oleg-shilo/cs-script.npp|date=2019-06-27|url=https://github.com/oleg-shilo/cs-script.npp|access-date=2019-07-13}}

FlashDevelop uses CS-Script as its internal scripting engine.{{Cite web|url=http://www.flashdevelop.org/wikidocs/index.php?title=Scripting|title=Scripting - FlashDevelop|website=www.flashdevelop.org|access-date=2019-07-13}}

Benefits

= Simple deployment approach =

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 =

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

= Optimized interpretation =

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

= Strongly typed =

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 =

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.{{Cite journal |last=Mascarenhas |first=Fabio |date=2004-01-01 |title=LuaInterface: Scripting the .NET CLR with Lua |url=https://www.academia.edu/22772329}}

= Script hosting =

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

References

{{Reflist}}