Skip to content

Release v4.6.5

Latest
Compare
Choose a tag to compare
@oleg-shilo oleg-shilo released this 19 Mar 10:37
· 1 commit to master since this release

Deployment

Ubuntu (terminal)

repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.6.5.0/; file=cs-script_4.6-5.deb; rm $file; wget $repo$file; sudo dpkg -i $file

Depending on the user context you may need to add permissions to the CS-Script temp dir sudo chmod -R 777 /tmp

Windows (choco)

Currently pending Chocolaty approval...

choco install cs-script

Manual (Any OS)

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:

dotnet cscs -self-exe

The same shim/symbolic link is created if you are installing the CS-Script as a package.

The minimalistic manual distrio on the target machine with .NET SDK installed is just a set of the script engine files:
Linux

cscs.dll
cscs.runtimeconfig.json

Running: dotnet ./cscs.dll <script>

You can also create an alias for convenient access:

echo "alias css='dotnet /usr/local/bin/cs-script/cscs.dll'" >> ~/.bashrc
source ~/.bashrc

And then you can run scripts with a simple: css <script>

Windows

cscs.exe
cscs.dll
cscs.runtimeconfig.json

Running: cscs.exe <script>


Changes

CLI

  • Issue #327: CS-Script file with async calls suddenly terminates
  • Updated Linux distro with css executable replaced with Linux alias functionality.

CSScriptLib

  • Added CodeDomEvaluator.CscTimeout to allow auto-termination of the csc.exe when it hangs. Triggered by #318