CS-Script 4.1.0

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package CS-Script -Version 4.1.0
dotnet add package CS-Script --version 4.1.0
<PackageReference Include="CS-Script" Version="4.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CS-Script --version 4.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CS-Script, 4.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.1.0

// Install CS-Script as a Cake Tool
#tool nuget:?package=CS-Script&version=4.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CS-Script engine Class Library for .NET 5

NuGet packages (8)

Showing the top 5 NuGet packages that depend on CS-Script:

Package Downloads
ClrPlus.Scripting.MsBuild

A library containing classes to use propertysheets with MsBuild scripts. [Note: This library is not quite ready for public consumption--I'm in the middle of some code reorganization]

WireMock.Net.Matchers.CSharpCode

A CSharpCodeMatcher which can be used to match WireMock.Net Requests using C# code.

H.Runners.CSharpRunner

Allows you dynamic execution of C# code.

Kugar.Tool.ExcelTemplate

以xml模板的方式,导出Excel,详细模板参见ExportDemo.xml文件,并允许运行时更新

ReMi.Api

ReMi API

GitHub repositories (6)

Showing the top 5 popular GitHub repositories that depend on CS-Script:

Repository Stars
antonpup/Aurora
Unified lighting effects across multiple brands and various games.
fdorg/flashdevelop
FlashDevelop is a free and open source code editor.
WireMock-Net/WireMock.Net
WireMock.Net is a flexible library 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.
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.
Version Downloads Last updated
4.1.3-pre 104 9/26/2021
4.1.2-pre 117 9/12/2021
4.1.1-pre 101 9/12/2021
4.1.0 3,148 7/18/2021
4.0.2 877 6/16/2021
4.0.1 2,023 4/13/2021
4.0.0 1,778 3/16/2021
3.30.5.1 2,158 12/21/2020
3.30.5-pre 169 12/20/2020
3.30.4 1,171 12/12/2020
3.30.3 5,284 5/30/2020
3.30.2-HotFix 1,068 4/27/2020
3.30.1-HotFix 8,839 12/17/2019
3.30.0 63,282 10/14/2019
3.29.0 129,703 5/22/2019
3.28.7 8,685 9/2/2018
3.28.4 19,996 4/28/2018
3.28.2 1,688 3/15/2018
3.28.0.1 2,530 2/5/2018
3.28.0 1,601 2/4/2018
3.27.2 3,849 8/11/2017
3.27.0 1,117 7/19/2017
3.26.2 2,604 6/30/2017
3.25.1.1 2,408 3/30/2017
3.25.1 796 3/23/2017
3.24.2 7,498 3/5/2017
3.24.0 1,430 2/14/2017
3.22.0 1,198 1/30/2017
3.21.1 843 1/25/2017
3.19.0 2,370 12/12/2016
3.18.1 1,991 11/16/2016
3.16.0 1,272 10/26/2016
3.14.0 6,713 8/3/2016
3.13.2 16,302 7/7/2016
3.13.1 723 7/7/2016
3.12.3 4,307 5/16/2016
3.12.2.1 2,274 5/14/2016
3.12.1 1,680 3/30/2016
3.12.0.1 4,252 3/22/2016
3.12.0 927 3/22/2016
3.11.0.1 8,722 2/4/2016
3.11.0 883 2/3/2016
3.10.0 1,257 1/12/2016
3.9.19 5,708 12/9/2015
3.9.17 6,024 11/4/2015
3.9.10 17,160 5/6/2015
3.9.8.1 977 4/26/2015
3.9.8 803 4/25/2015
3.9.7 1,143 4/16/2015
3.9.5 1,441 3/18/2015
3.9.4.1 1,634 2/25/2015
3.9.2 1,290 1/31/2015
3.8.10 13,450 10/20/2014
3.8.8 3,938 9/23/2014
3.8.7 1,033 9/17/2014
3.8.6 1,511 8/30/2014
3.8.5 1,009 8/25/2014
3.8.3 2,618 6/20/2014
3.8.2 996 6/15/2014
3.7.2 3,807 2/9/2014
3.7.0 1,137 1/20/2014
3.6.7 3,399 10/29/2013
3.6.2 1,531 8/31/2013
3.5.9 23,625 5/4/2013
3.5.8 994 5/3/2013
3.5.7 981 5/3/2013
3.5.6 997 5/3/2013
3.5.5 995 5/1/2013
3.5.4 1,147 4/30/2013
3.5.3 1,089 4/29/2013
3.5.0.2 3,320 2/2/2013
3.5.0.1 926 2/2/2013
3.5.0 1,252 2/2/2013
3.2.5.1 4,573 1/21/2012
3.2.5 1,534 1/21/2012

Implementation of Roslyn engine that allows execution of scripts (both CLI and hosted) on the target system without .NET 5 SDK installed.

---

## 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:

 ```ps
 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`