CS-Script
4.14.2
dotnet add package CS-Script --version 4.14.2
NuGet\Install-Package CS-Script -Version 4.14.2
<PackageReference Include="CS-Script" Version="4.14.2" />
<PackageVersion Include="CS-Script" Version="4.14.2" />
<PackageReference Include="CS-Script" />
paket add CS-Script --version 4.14.2
#r "nuget: CS-Script, 4.14.2"
#:package CS-Script@4.14.2
#addin nuget:?package=CS-Script&version=4.14.2
#tool nuget:?package=CS-Script&version=4.14.2
CS-Script engine Class Library for .NET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.14.0)
- Microsoft.CodeAnalysis.Scripting.Common (>= 4.14.0)
- Microsoft.Extensions.DependencyModel (>= 9.0.7)
- System.Runtime.Loader (>= 4.3.0)
- System.Text.Json (>= 9.0.7)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on CS-Script:
| Package | Downloads |
|---|---|
|
WebVella.Erp.Web
The web components library for the open-source and free platform WebVella ERP. It allows a quick and painless creation of business web applications. |
|
|
WireMock.Net.Matchers.CSharpCode
A CSharpCodeMatcher which can be used to match WireMock.Net Requests using C# code. |
|
|
cbim.mango.server.framework
BIM-STAR平台服务器端主程序所需库 |
|
|
BioLib
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. |
|
|
H.Runners.CSharpRunner
Allows you dynamic execution of C# code. |
GitHub repositories (13)
Showing the top 13 popular GitHub repositories that depend on CS-Script:
| Repository | Stars |
|---|---|
|
timschneeb/GalaxyBudsClient
Unofficial Galaxy Buds Manager for Windows, macOS, Linux, and Android
|
|
|
dotnetcore/Magicodes.IE
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
|
|
|
antonpup/Aurora
Unified lighting effects across multiple brands and various games.
|
|
|
wiremock/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended with more functionality.Full documentation can be found at https://wiremock.org/dotnet/.
|
|
|
WebVella/WebVella-ERP
Free and open-source pluggable ERP and CRM software based on ASP.NET Core 9, RazorPages and PostgreSQL . Targets Linux or Windows as host OS.
|
|
|
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
|
|
|
ThingsGateway/ThingsGateway
ThingsGateway is a cross-platform, high-performance gateway for edge data acquisition and IoT connectivity. Developed with .NET 8, it offers a suite of powerful tools, including advanced PLC communication libraries and debugging software.
|
|
|
fdorg/flashdevelop
FlashDevelop is a free and open source code editor.
|
|
|
dukus/digiCamControl
DSLR camera remote control open source software
|
|
|
SparkDevNetwork/Rock
An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
|
|
|
vchelaru/FlatRedBall
Cross-platform 2D game engine focused on ultimate productivity built in .NET
|
|
|
pdfforge/PDFCreator
PDFCreator - The free PDF Converter
|
|
|
Cryolitia/PhotoTimeFix
An easy program aimed to fix photo's timestamp incorrect by filename/Exif
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.14.2 | 53 | 3/4/2026 |
| 4.14.1 | 49 | 3/4/2026 |
| 4.14.0 | 70 | 3/3/2026 |
| 4.13.2 | 3,487 | 1/24/2026 |
| 4.13.1 | 16,806 | 12/20/2025 |
| 4.13.0 | 5,149 | 12/11/2025 |
| 4.12.0 | 16,855 | 11/15/2025 |
| 4.11.2 | 32,991 | 10/7/2025 |
| 4.11.0 | 52,113 | 8/10/2025 |
| 4.10.1 | 8,769 | 7/30/2025 |
| 4.10.0 | 2,656 | 7/29/2025 |
| 4.9.9 | 3,659 | 7/26/2025 |
| 4.9.7 | 56,512 | 6/8/2025 |
| 4.9.6 | 44,480 | 4/27/2025 |
| 4.9.5 | 8,353 | 4/17/2025 |
| 4.8.27 | 108,265 | 1/12/2025 |
| 4.8.26 | 296 | 1/11/2025 |
| 4.8.21 | 22,939 | 11/18/2024 |
| 4.8.19 | 23,658 | 10/31/2024 |
| 4.8.18-HotFix | 882 | 7/19/2024 |
---
## Changes (v4.14.0-4.14.2)
The major changes in this release are around improved support for working with external compile engines in CodeDom evaluator mode. Now both, CLI and CSScriptLib APIs allow automatic download and deployment of the latest .NET compilers (nuget packages) on the target system so the user does not have to install the complete .NET SDK.
Caching and temp files management has also been improved dramatically and made more consistent and reliable.
Another significant change is heave refactoring and documentation improvements.
Special thank you to @maettu-this who helped with the requirements for all these changes.
========================================
### Misc
- #444: "The documentation texts of CompileAssemblyFrom..."
- Updated CodeDom-Evaluator-Dependencies.md to reference the new deployment option.
- Reworked and unified csc.exe probing for CodeDom compilation.
- Intensive code housekeeping
- Major rework of the .NET Framework samples. Triggered by #442
### CLI
- Improved cache cleanup mechanism to prevent endless growth of `csscript.core` directory
- Enabled `Runtime.CleanAbandonedCache()` to automatically remove cache directories when source scripts are deleted
- `-pkill` command improvements. Bump version to 1.0.1
- Added `-deploy-csc` switch for compiler deployment via NuGet
- Enhanced the LockCheck sample to better handle directory lock checks using handle.exe as a fallback.
### CSScriptLib
- #434: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.14.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
- #435: /share compiler flag causes CS2007 error after upgrading to 4.13.1
- #436: SerializationException: Type 'CSScripting.CodeDom.CompilerError' in assembly 'CSScriptLib...
- #437: updated wrong resource referencing.
* #441: Change CodeDomEvaluator.IsCachingEnabled default to true
- #445: Missing information on resulting compilation details?
- #448: Using preprocessor directives with Roslyn / SourceCodeKind.Regular
- #449: RoslynEvaluator ignores disabling referencing AppDomain assemblies.
- #447: Proposing EvaluatorBase.CompileFile for consistency with EvaluatorBase.CompileAssemblyFromFile
Add AttachedProperties and project context to compilation
- Enabled abandoned cache cleanup to prevent endless growth of `csscript.lib` directory
- Cache directories are now automatically cleaned when source script directories no longer exist
- Added NugetPackageDownloader and unified compiler discovery
- Deprecated CompilerLastOutput; add CompilerInput/Output
- Added DownloadLatestSdkToolset to NugetPackageDownloader for automated retrieval of compilers and reference assemblies. It improves support for environments without .NET SDK.
### Temporary Directory Structure
CS-Script now uses separate temporary directories for better isolation:
%TEMP% (or $TMPDIR on Linux)
├── csscript.core\ # CLI execution (cscs.exe, csws.exe)
│ ├── cache\ # Compiled script cache
│ ├── snippets\ # `-code` execution cache
│ └── DbgAttach\ # Debug metadata
└── csscript.lib\ # Library/hosted evaluation (CSScriptLib)
├── cache\ # Compiled script cache
└── tmp files # Temporary compilation artifacts