Skip to content

Releases: oleg-shilo/cs-script.core

Release v2.0.0.0

21 Feb 00:32
9a9169d

Choose a tag to compare

The first .NET5 release

This is the first CS-Script.Core release that targets .NET 5.
This build is to be re-versioned as v4.0.0.0 and published on https://github.com/oleg-shilo/cs-script as "CS-Script".

After that the repository will be decommissioned and the product will be fully managed from https://github.com/oleg-shilo/cs-script


Deployment

Ubuntu (terminal)

repo=https://github.com/oleg-shilo/cs-script.core/releases/download/v2.0.0.0/; file=cs-script_2.0-0.deb; rm $file; wget $repo$file; sudo dpkg -i $file

Windows (choco)

choco install cs-script.core --version=2.0.0.0 

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

  • New commands:
    • -server - for managing build server
    • -vscode - to open script in VSCode
    • -vs - to script project in Visual Studio
    • -self-test - for testing the engine on the target system
    • -self-exe - for building css launcher for manual deployment
    • -engine:<csc|dotnet>
    • -new:toplevel - CLI parameter
    • -profile - for testing script loading performance
    • -speed - for compiler performance testing
  • Added css
  • Added creation of code.header on first use of CLI command -code
  • Added complex (multi-file) commands support (e.g. css -self-test-run)
  • Implemented build server
  • Implemented hot-loading for csc engine.
  • Normalized all \n and \r\n CLI output by using Environment.NewLine
  • Added reporting using of incompatible csc compiler for scripts requiring XAML compilation

CSScriptLib

  • Implemented //css_winapp for WinForm and WPF applications
  • Added //css_engine (//css_ng) directive for choosing the compiling engine
  • Completed CSScript.Evaluator.CodeDom interface.
  • Implemented transparent hosting of CSScriptLib in .NET-Framework and .NET-Core
  • Removed dependency on Roslyn for pure CodeDom evaluator use-case
  • added sample with downloading the latest C# compiler
  • added passing compiler options
  • Implemented probing for default C#5 compiler when hosted on .NET Framework.
  • Extending u-testing to cover new Evaluator features (CSScriptLib.dll)

v1.4.6.0-NET5-RC6

20 Feb 11:28
6b4fd51

Choose a tag to compare

v1.4.6.0-NET5-RC6 Pre-release
Pre-release

The final .NET5 release

We are ready to go public. This very build is to be re-versined as v4.0.0.0 and published on https://github.com/oleg-shilo/cs-script


Deployment

Ubuntu (terminal)

repo=https://github.com/oleg-shilo/cs-script.core/releases/download/v1.4.6.0-NET5-RC6/; file=cs-script_1.4-6.deb; rm $file; wget $repo$file; sudo dpkg -i $file

Windows (choco)

choco install cs-script.core --version=1.4.6.0-NET5-RC5 --pre 

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 CSScriptLib and CLI support for VB syntax
  • Added auto-discovery of VS and VSCode
  • Added using static dbg; to -code.header

Release v1.4.5.0-NET5-RC5

23 Jan 11:43
6b4fd51

Choose a tag to compare

Deployment

Ubuntu (terminal)

repo=https://github.com/oleg-shilo/cs-script.core/releases/download/v1.4.5.0-NET5-RC5/; file=cs-script_1.4-5.deb; rm $file; wget $repo$file; sudo dpkg -i $file

Windows (choco)

choco install cs-script.core --version=1.4.5.0-NET5-RC5 --pre 

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 complex (multi-file) commands support (e.g. css -self-test-run)
  • Added css -self-test command for testing the engine on the target system
  • Added css -self-exe command for building css launcher for manual deployment
  • Build changes to support Linux distro
  • Added -vscode help info
  • Added css -server:restart CLI parameter
  • Added detection of CLI host and build server running with different root privileges on Linux

Release v1.4.5.0-NET5-RC5

19 Jan 12:54
6b4fd51

Choose a tag to compare

Pre-release

CLI

  • Added complex (multi-file) commands support (e.g. css -selftest:run)
  • Build process (CI) changes to support building Linux distro
  • -selftest switch (wip)
  • Added -vscode help info

Release 1.4.4-NET5-RC4

09 Jan 13:36
6b4fd51

Choose a tag to compare

  • Added //css_engine (//css_ng) directive for choosing the compiling engine
  • Added -engine:<csc|dotnet> switch
  • Extended unit-testing to cover CLI scenarios

Release v1.4.3.0-.NET5-RC3

06 Jan 08:29
6b4fd51

Choose a tag to compare

Pre-release

CodeDOM support for CLI and CSScriptLib
Build for .NET 5.0.101 (public release)

The code samples are here: https://github.com/oleg-shilo/cs-script.core/tree/master/src/CSScriptLib/src
Choco and NuGet packages will be published within a week.


CLI

  • LoadFrom is globally replaced with LoadFile (to avoid CLR-backed asm memory caching)
  • Implemented hot-loading for csc engine in standalone mode. First cut
  • Normalized all \n and \r\n CLI output by using Environment.NewLine
  • Add config setting for using of csc builder
  • Added reporting using of incompatible csc compiler for scripts requiring XAML compilation implemented deployment of build server

CSScriptLib

  • Completed CSScript.Evaluator.CodeDom interface.
  • Implemented transparent hosting of CSScriptLib in .NET-Framework and .NET-Core
  • Removed dependency on Roslyn for pure CodeDom evaluator use-case
  • added sample with downloading the latest C# compiler
  • added passing compiler options
  • Implemented probing for default C#5 compiler when hosted on .NET Framework.
  • Extending u-testing to cover new Evaluator features (CSScriptLib.dll)

Release v1.4.2.0 .NET5 RC2

19 Oct 12:24

Choose a tag to compare

.NET5 RC2

  • Migrated to .NET5 RC2
  • Implemented //css_winapp for WinForm and WPF applications
  • Added -new:toplevel CLI parameter
  • Added support for -vscode switch to open script in visual studio
  • Added support for -vs switch to open script folder in visual studio code
  • Added support for top-level statements (new classless script approach)
  • Added CLI switch -profile for testing script loading performance
  • Added CLI -speed for compiler performance testing

Release v1.4.1-preview

22 Aug 05:51

Choose a tag to compare

Pre-release

.NET5 Preview

  • Build for .NET 5.0.100-preview.7.20366.6
  • Improved special characters escaping for -code

Release v1.4.0.0

30 Jul 13:01

Choose a tag to compare

  • Added handling quots in the //css_ref... directives
  • Added support for VB.NET syntax (cscs.exe only)

VB.NET support

` VB.NET script sample
' //css_ref System

Imports System

Module Module1
    Sub Main()
        Console.WriteLine("Hello World! (VB)")
    End Sub
End Module

Create VB.NET script:

css.exe -new:console-vb hello.vb

Execute VB.NET script

css.exe hello.vb

image

Release v1.3.2.0

31 May 13:07

Choose a tag to compare

  • Resolve error on Linux when downloading packages
  • Fixed error "Cannot parse "//css_import..."" when referencing an assembly
  • Updated help content for -new switch
  • Fixed AgregateReferences with inclusion of CLR assemblies
  • Updated initialization of %css_nuget% envar so it does not interfere with handling synatxer GenerateProjectFor request handling