← Package directory
Available on winget

Install cs-script

C# Script execution engine

Install with winget
winget install --id oleg-shilo.cs-script
Upgrade
winget upgrade --id oleg-shilo.cs-script
Uninstall
winget uninstall --id oleg-shilo.cs-script

About cs-script

C# Script execution engine

What's new in 4.14.9.0

Added -proj:out to create a Visual Studio project file for building the exe file from the script." #467: SelfContained does not work anymore since version 4.14.4

Read release notes

Version history

Version Updated Notes
4.14.9.0 Unknown Added -proj:out to create a Visual Studio project file for building the exe file from the script." #467: SelfContained does not work anymore since version 4.14.4
4.14.5.0 Unknown Added multi-file and symbol support to Roslyn build pipeline (`-ng:roslyn`)
4.14.4.0 Unknown Improved script assembly location tracking. Now, even if the script assembly is loaded not from a file but from memory, the location can still be resolved in the script via CS-Script's own extension method Assembly.Locat...
4.13.1.0 Unknown - #432: "Restoring packages..." hangs - Added compiler `NET10_0_OR_GREATER` and `NET10` for .NET10 scripts. - Added public ConsoleExtensions ```c# Console.Print("Running on .NET 10 or greater", DarkGreen); Console.Print(...
4.12.0.0 Unknown - CS-Script ported to .NET 10 - Added '-l' option for auto-selecting the latest available .NET Runtime with the call: `css -self-rt -l` - Added support for .NET 10 file-based execution directives: `#:package` and `#r`. -...
4.11.2.0 Unknown - Updating current directory via -l switch is disabled for all custom command scripts. - Added public extension methods - Reset dotnet-engine project template on the change of the target framework (set via `-self-rt`) -...
4.11.1.0 Unknown - Added `-self-rt` custom command for setting the script engine runtime version
4.9.9.0 Unknown - added `cscs.exe` to the cs-script.cli .NET Tool package; Triggered by #423 - added option for `css -cache <script>` command to print the cache location for a given script - WDBG: - Implemented Call Stack panel - implem...
4.9.8.0 Unknown Note Windows Defender often marks zip files as infected for no reason. Use VirisTotal reports to ensure the safety of any downloaded distributable: - cs-script.win.v4.9.8.0.zip ✅(1/97) VirusTotal latest scan Deployment (...
4.9.6.0 Unknown Changes CLI #414: Implement assembly probing for external script execution (e.g. x86) CSScriptLib - no changes
4.9.5.0 Unknown No notes
4.9.4.0 Unknown Note WindowsDefender often marks zip files as infected for no reason. Use VirisTotal reports to ensure the safety of any downloaded distributable: - cs-script.win.v4.9.4.0.zip ✅(0/96) VirusTotal latest scan Deployment (i...
4.9.2.0 Unknown - Added new custom commands: - css -pkill <process name pattern>: terminates the process based on name. - css -update: updates already installed CS-Script (if detected) - css -edit <script|custom command>: opens the scri...
4.9.1.0 Unknown Note WindowsDefender often marks zip files as infected for no reason. Use VirisTotal reports to ensure the safety of any downloaded distributable: - cs-script.win.v4.9.1.0.zip ✅(0/96) VirusTotal latest scan Deployment (i...
4.9.0.0 Unknown No notes
4.8.26.0 Unknown No notes
4.8.23.0 Unknown No notes
4.8.20.0 Unknown No notes
4.8.19.0 Unknown No notes
4.8.18.0 Unknown No notes