CS-Script 4.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CS-Script --version 4.2.0                
NuGet\Install-Package CS-Script -Version 4.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CS-Script" Version="4.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CS-Script --version 4.2.0                
#r "nuget: CS-Script, 4.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CS-Script as a Cake Addin
#addin nuget:?package=CS-Script&version=4.2.0

// Install CS-Script as a Cake Tool
#tool nuget:?package=CS-Script&version=4.2.0                

CS-Script engine Class Library for .NET 5

Product 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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (22)

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平台服务器端主程序所需库

H.Runners.CSharpRunner

Allows you dynamic execution of C# code.

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.

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 8, RazorPages and PostgreSQL . Targets Linux or Windows as host OS.
Version Downloads Last updated
4.8.19 1,593 10/31/2024
4.8.18-HotFix 469 7/19/2024
4.8.17 25,872 7/13/2024
4.8.16 13,196 5/21/2024
4.8.16-pre 135 5/6/2024
4.8.14 25,069 1/16/2024
4.8.13 20,412 12/20/2023
4.8.12 1,233 12/16/2023
4.8.10 3,171 11/25/2023
4.8.9 1,627 11/24/2023
4.8.8 6,671 11/15/2023
4.8.7 960 11/7/2023
4.8.4-pre 164 10/4/2023
4.8.3 8,411 10/1/2023
4.8.1 12,559 7/7/2023
4.8.0 461 7/5/2023
4.6.5 20,734 3/19/2023
4.6.2 66,234 1/2/2023
4.5.0 13,453 12/15/2022
4.4.6 71,592 6/8/2022
4.4.5 11,008 5/15/2022
4.4.4-pre 198 4/23/2022
4.4.2 46,424 4/16/2022
4.4.1 31,160 2/14/2022
4.4.0 645 2/12/2022
4.3.0 3,028 1/15/2022
4.2.0 13,359 11/14/2021
4.1.3-pre 280 9/26/2021
4.1.2-pre 449 9/12/2021
4.1.1-pre 336 9/12/2021
4.1.0 37,270 7/18/2021
4.0.2 2,193 6/16/2021
4.0.1 3,669 4/13/2021
4.0.0 35,345 3/16/2021
3.30.5.1 5,519 12/21/2020
3.30.5-pre 352 12/20/2020
3.30.4 3,366 12/12/2020
3.30.3 27,532 5/30/2020
3.30.2-HotFix 1,233 4/27/2020
3.30.1-HotFix 9,018 12/17/2019
3.30.0 87,678 10/14/2019
3.29.0 319,025 5/22/2019
3.28.7 13,237 9/2/2018
3.28.4 32,067 4/28/2018
3.28.2 2,405 3/15/2018
3.28.0.1 4,625 2/5/2018
3.28.0 2,424 2/4/2018
3.27.2 4,601 8/11/2017
3.27.0 1,683 7/19/2017
3.26.2 3,155 6/30/2017
3.25.1.1 2,930 3/30/2017
3.25.1 1,319 3/23/2017
3.24.2 17,035 3/5/2017
3.24.0 2,132 2/14/2017
3.22.0 1,708 1/30/2017
3.21.1 1,348 1/25/2017
3.19.0 2,957 12/12/2016
3.18.1 2,652 11/16/2016
3.16.0 1,824 10/26/2016
3.14.0 9,624 8/3/2016
3.13.2 31,182 7/7/2016
3.13.1 1,230 7/7/2016
3.12.3 5,396 5/16/2016
3.12.2.1 2,823 5/14/2016
3.12.1 2,211 3/30/2016
3.12.0.1 5,096 3/22/2016
3.12.0 1,681 3/22/2016
3.11.0.1 9,350 2/4/2016
3.11.0 1,391 2/3/2016
3.10.0 1,885 1/12/2016
3.9.19 9,218 12/9/2015
3.9.17 30,994 11/4/2015
3.9.10 22,012 5/6/2015
3.9.8.1 1,762 4/26/2015
3.9.8 1,455 4/25/2015
3.9.7 1,722 4/16/2015
3.9.5 2,029 3/18/2015
3.9.4.1 2,516 2/25/2015
3.9.2 1,828 1/31/2015
3.8.10 21,323 10/20/2014
3.8.8 8,029 9/23/2014
3.8.7 1,514 9/17/2014
3.8.6 2,041 8/30/2014
3.8.5 1,565 8/25/2014
3.8.3 3,185 6/20/2014
3.8.2 1,523 6/15/2014
3.7.2 4,809 2/9/2014
3.7.0 1,654 1/20/2014
3.6.7 4,014 10/29/2013
3.6.2 2,096 8/31/2013
3.5.9 26,038 5/4/2013
3.5.8 1,541 5/3/2013
3.5.7 1,512 5/3/2013
3.5.6 1,518 5/3/2013
3.5.5 1,519 5/1/2013
3.5.4 1,672 4/30/2013
3.5.3 1,635 4/29/2013
3.5.0.2 4,069 2/2/2013
3.5.0.1 1,454 2/2/2013
3.5.0 1,950 2/2/2013
3.2.5.1 17,003 1/21/2012
3.2.5 2,473 1/21/2012

Maintenance release:

- Updated -speed and -code with the complete support -ng:* switches
- Added IEvaluator.IsCachingEnabled. Ite as always available from the conctrete types implementing IEvaluator and now it is moved directly to the interface.
- Added -servers:start and -servers:stop command to control both Roslyn and csc build servers at the same time
- CSScriptLib: Native API CacheEnabled marked as obsolete
- Issue #258: Can not run scripts after installing VS2022
- Issue #257: Ability to catch AppDomain.UnhandledException in a not-hosted script (cscs)
- Issue #255: Relative path for cscs.exe -out option results in wrong output folder
- Issue #254: Script merger for hosted scripts
- Issue #253: Supports both .Net Framework and .Net 5
- Issue #252: System.NullReferenceException: Object reference not set to an instance of an object. (updated API doc)
- Added auto-generation of the CLI MD documentation with -help cli:md. To be used to generate GitHub wiki page during the build
- Fixed Debian packaging problem (/n/r needed replacement with \n)

---

## Deployment
_**Ubuntu (terminal)**_
```
repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.1.0.0/; file=cs-script_4.1-0.deb; rm $file; wget $repo$file; sudo dpkg -i $file
```
_**Windows (choco)**_
_Pending approval_
```
choco install cs-script --version=4.1.0.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_

- Added support for Roslyn engine (no SDK required). See [this wiki](https://github.com/oleg-shilo/cs-script/wiki/Choosing-Compiler-Engine) for details.

 **_Per-execution_**

 From command line:

 ```
 css -engine:roslyn <script file>
 or
 css -ng:roslyn <script file>
 ```

 From script code:

 ```C#
 //css_engine roslyn
 or
 //css_ng roslyn
 ```

 **_Global_**

 ```ps
 css -config:set:DefaultCompilerEngine=roslyn
 ```

- Added option to configure build server ports from environment variables
- Issue #235: csc engine cannot compile dll

### _CSScriptLib_

- Issue #245: .Net 5 SDK project, could not run "CompileAssemblyFromCode"
- Issue #244: Some questions about 4.0.2
 `RefernceDomainAsemblies` made obsolete and renamed to `ReferenceDomainAssemblies`
 Added extension methods `IEvaluator.ExcludeReferencedAssemblies`