Skip to content

Release v4.5.0.0

Compare
Choose a tag to compare
@oleg-shilo oleg-shilo released this 11 Nov 01:30

Deployment

Ubuntu (terminal)

repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.5.0.0/; file=cs-script_4.5-0.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.


Due to the quick progression v4.4.9->v4.5.0 this document contains v4.4.9 changes too.

Changes

CLI

v4.5.0

  • Rebuild for .NET7
  • Improved CLI documentation (triggered by #314)
  • Added an extra CLI //css_co help sample for enabling nullable reference types (#313)
  • Improved responsiveness of the "build-type" scripting scenarios (e.g. css -check)

v4.4.9

  • Enhancement #310: Add the possibility to use variables in css_include and css_import statements

CSScriptLib

v4.4.9

  • It's possible to define a custom algorithm of how to expand script directives.

    Hosting code:

    CSScript.EvaluatorConfig.ExpandStatementAlgorithm += 
                    statement => statement.Replace("%secret_folder%", Config.PrivateFolder);

    Script code:

    //css_include %secret_folder%/inputdata.cs
    . . .