CS-Script
4.0.2
See the version list below for details.
dotnet add package CS-Script --version 4.0.2
NuGet\Install-Package CS-Script -Version 4.0.2
<PackageReference Include="CS-Script" Version="4.0.2" />
paket add CS-Script --version 4.0.2
#r "nuget: CS-Script, 4.0.2"
// Install CS-Script as a Cake Addin #addin nuget:?package=CS-Script&version=4.0.2 // Install CS-Script as a Cake Tool #tool nuget:?package=CS-Script&version=4.0.2
CS-Script engine Class Library for .NET 5
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. |
.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 (>= 3.6.0)
- Microsoft.CodeAnalysis.Scripting.Common (>= 3.6.0)
- Microsoft.Extensions.DependencyModel (>= 3.1.6)
- System.Runtime.Loader (>= 4.3.0)
NuGet packages (21)
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. |
|
ThingsGateway.CSScript
Package Description |
|
cbim.mango.server.framework
BIM-STAR平台服务器端主程序所需库 |
|
H.Runners.CSharpRunner
Allows you dynamic execution of C# code. |
GitHub repositories (12)
Showing the top 5 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-Net/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
|
|
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.
|
Version | Downloads | Last updated |
---|---|---|
4.8.27 | 7,273 | 1/12/2025 |
4.8.26 | 84 | 1/11/2025 |
4.8.21 | 13,040 | 11/18/2024 |
4.8.19 | 9,709 | 10/31/2024 |
4.8.18-HotFix | 536 | 7/19/2024 |
4.8.17 | 35,431 | 7/13/2024 |
4.8.16 | 16,178 | 5/21/2024 |
4.8.16-pre | 149 | 5/6/2024 |
4.8.14 | 27,419 | 1/16/2024 |
4.8.13 | 22,747 | 12/20/2023 |
4.8.12 | 1,256 | 12/16/2023 |
4.8.10 | 3,249 | 11/25/2023 |
4.8.9 | 2,103 | 11/24/2023 |
4.8.8 | 8,714 | 11/15/2023 |
4.8.7 | 971 | 11/7/2023 |
4.8.4-pre | 172 | 10/4/2023 |
4.8.3 | 8,452 | 10/1/2023 |
4.8.1 | 12,821 | 7/7/2023 |
4.8.0 | 481 | 7/5/2023 |
4.6.5 | 21,530 | 3/19/2023 |
4.6.2 | 69,053 | 1/2/2023 |
4.5.0 | 14,152 | 12/15/2022 |
4.4.6 | 77,325 | 6/8/2022 |
4.4.5 | 11,044 | 5/15/2022 |
4.4.4-pre | 205 | 4/23/2022 |
4.4.2 | 48,115 | 4/16/2022 |
4.4.1 | 32,213 | 2/14/2022 |
4.4.0 | 656 | 2/12/2022 |
4.3.0 | 3,039 | 1/15/2022 |
4.2.0 | 13,512 | 11/14/2021 |
4.1.3-pre | 287 | 9/26/2021 |
4.1.2-pre | 458 | 9/12/2021 |
4.1.1-pre | 346 | 9/12/2021 |
4.1.0 | 38,273 | 7/18/2021 |
4.0.2 | 2,242 | 6/16/2021 |
4.0.1 | 3,681 | 4/13/2021 |
4.0.0 | 36,063 | 3/16/2021 |
3.30.5.1 | 5,794 | 12/21/2020 |
3.30.5-pre | 359 | 12/20/2020 |
3.30.4 | 3,446 | 12/12/2020 |
3.30.3 | 29,311 | 5/30/2020 |
3.30.2-HotFix | 1,243 | 4/27/2020 |
3.30.1-HotFix | 9,025 | 12/17/2019 |
3.30.0 | 87,870 | 10/14/2019 |
3.29.0 | 330,090 | 5/22/2019 |
3.28.7 | 13,310 | 9/2/2018 |
3.28.4 | 32,433 | 4/28/2018 |
3.28.2 | 2,419 | 3/15/2018 |
3.28.0.1 | 4,646 | 2/5/2018 |
3.28.0 | 2,437 | 2/4/2018 |
3.27.2 | 4,623 | 8/11/2017 |
3.27.0 | 1,697 | 7/19/2017 |
3.26.2 | 3,168 | 6/30/2017 |
3.25.1.1 | 2,945 | 3/30/2017 |
3.25.1 | 1,331 | 3/23/2017 |
3.24.2 | 17,161 | 3/5/2017 |
3.24.0 | 2,166 | 2/14/2017 |
3.22.0 | 1,720 | 1/30/2017 |
3.21.1 | 1,360 | 1/25/2017 |
3.19.0 | 2,971 | 12/12/2016 |
3.18.1 | 2,665 | 11/16/2016 |
3.16.0 | 1,838 | 10/26/2016 |
3.14.0 | 9,707 | 8/3/2016 |
3.13.2 | 32,271 | 7/7/2016 |
3.13.1 | 1,244 | 7/7/2016 |
3.12.3 | 5,438 | 5/16/2016 |
3.12.2.1 | 2,835 | 5/14/2016 |
3.12.1 | 2,223 | 3/30/2016 |
3.12.0.1 | 5,108 | 3/22/2016 |
3.12.0 | 1,698 | 3/22/2016 |
3.11.0.1 | 9,379 | 2/4/2016 |
3.11.0 | 1,403 | 2/3/2016 |
3.10.0 | 1,897 | 1/12/2016 |
3.9.19 | 9,258 | 12/9/2015 |
3.9.17 | 31,077 | 11/4/2015 |
3.9.10 | 22,373 | 5/6/2015 |
3.9.8.1 | 1,785 | 4/26/2015 |
3.9.8 | 1,470 | 4/25/2015 |
3.9.7 | 1,735 | 4/16/2015 |
3.9.5 | 2,054 | 3/18/2015 |
3.9.4.1 | 2,531 | 2/25/2015 |
3.9.2 | 1,840 | 1/31/2015 |
3.8.10 | 21,775 | 10/20/2014 |
3.8.8 | 8,103 | 9/23/2014 |
3.8.7 | 1,528 | 9/17/2014 |
3.8.6 | 2,055 | 8/30/2014 |
3.8.5 | 1,577 | 8/25/2014 |
3.8.3 | 3,228 | 6/20/2014 |
3.8.2 | 1,536 | 6/15/2014 |
3.7.2 | 4,840 | 2/9/2014 |
3.7.0 | 1,666 | 1/20/2014 |
3.6.7 | 4,028 | 10/29/2013 |
3.6.2 | 2,108 | 8/31/2013 |
3.5.9 | 26,180 | 5/4/2013 |
3.5.8 | 1,555 | 5/3/2013 |
3.5.7 | 1,524 | 5/3/2013 |
3.5.6 | 1,530 | 5/3/2013 |
3.5.5 | 1,531 | 5/1/2013 |
3.5.4 | 1,684 | 4/30/2013 |
3.5.3 | 1,649 | 4/29/2013 |
3.5.0.2 | 4,090 | 2/2/2013 |
3.5.0.1 | 1,465 | 2/2/2013 |
3.5.0 | 1,970 | 2/2/2013 |
3.2.5.1 | 18,541 | 1/21/2012 |
3.2.5 | 2,554 | 1/21/2012 |
Minor usability improvements of CSScriptLib:
- Unloading script assembly.
_After .NET Framework ignoring the problem for ~14 years .NET Core fillally allows this feature to be implemented._
- Excluding assemblies from being auto referenced (assembly filtering).
- Implemented script caching that was available in the CS-Script edition for .NET Franework.
---
## Deployment
_**Ubuntu (terminal)**_
```
repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.0.2.0/; file=cs-script_4.0-2.deb; rm $file; wget $repo$file; sudo dpkg -i $file
```
_**Windows (choco)**_
_Pending approval_
```
choco install cs-script --version=4.0.2.0
```
It is highly recommended that you uninstall CS-Script.Core:
```
sudo choco uninstall cs-script.core
```
_**Manual**_
Just unpack the corresponding 7z file and start using the script engine executable `cscs`.
If you prefer you can build a shim exe `css` for an easy launch of the script engine process:
```
cscs -self-exe
```
The same shim/symbolic link is created if you are installing the CS-Script as a package.
---
## Changes
### CLI
_No changes_
### CSScriptLib
- Added support for filtering referenced assemblies:
```C#
dynamic script = CSScript
.Evaluator
.SetRefAssemblyFilter(asms =>
asms.Where(a => !a.FullName.StartsWith("Microsoft."))
.LoadCode(scriptCode);
```
- Added extension method for unloading script assembly after the execution
```C#
ICalc calc = evaluator
.With(eval => eval.IsAssemblyUnloadingEnabledled = true)
.LoadMethod<ICalc>("int Sum(int a, int b) => a+b;");
var result = calc.Sum(7, 3);
calc.GetType()
.Assembly
.Unload();
```
- Added script caching. If caching is enabled (disabled by default) the script is to be recompiled only if it is changes since the last execution. It applies to both execution if script file and script code.
```C#
dynamic script = CSScript.Evaluator
.With(eval => eval.IsCachingEnabled = true)
.LoadMethod(@"object print(string message)
{
Console.WriteLine(message);
}");
script.print("Hello...");
```