Release v4.7.1.0
Deployment
Any OS
Install as .NET Tool
dotnet tool install --global cs-script.cli
After that, you can invoke the script engine as css
.
You may need to add the folder of css
to the system PATH, unless .NET SDK setup does it.
It can be one of these depending on your OS:
%USERPROFILE%\. dotnet\tools
~/.dotnet/tools
$HOME/.dotnet/tools
Note, during the tool upgrade you may need to ensure the script engine is not running. You can do it with a simple command css -kill
.
Linux
Ubuntu (terminal)
repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.7.1.0/; file=cs-script_4.7-1.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
You can also create a convenient alias (cs-script_x.x-x.deb package does it automatically):
alias css='dotnet /usr/local/bin/cs-script/cscs.dll'+
After that, you can invoke CS-Script engine from anywhere by just typing 'css'.
Windows
Chocoloatey
choco install cs-script
Manual (Any OS)
Just unpack the corresponding 7z file and start using the script engine executable cscs
.
On Windows, 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 choco 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
- Added
-install
(-uninstall
) command to set CSSCRIPT_ROOT environment variable. - Added
-kill
command to stop all CS-Script servers (if any).
CSScriptLib
<no changes>