Release v3.9.20.0

Rating: No reviews yet
Downloads: 836
Change Set: 41dcd1358858
Released: Dec 20, 2015
Updated: Dec 20, 2015 by oleg_s
Dev status: Stable Help Icon

Recommended Download

Application cs-script.7z
application, 8763K, uploaded Dec 20, 2015 - 607 downloads

Other Available Downloads

Application cs-script.ExtensionPack.7z
application, 900K, uploaded Dec 20, 2015 - 118 downloads
Application cs-scriptDocs.7z
application, 3369K, uploaded Dec 20, 2015 - 111 downloads

Release Notes

Improved C# 6 support

Added Compiler Server (VBCSCompiler.exe) for keeping Roslyn compilers preloaded.

MS implemented support for compiling C# 6 syntax only in Roslyn compiler. CS-Script integrated Roslyn (via <cs-script>\Lib\CSSCodeProvider.v4.6.dll) in Releases v3.9.15.0. However Roslyn compiler loading time (up to 4 seconds) didn't make it very practical.

Starting from this release CS-Script brings VBCSCompiler server (part of Roslyn toolset), which keeps actual compilers loaded between runs/compilations. This in turn dramatically improves the loading/compilation time.

API improvements

Added CSScript.CreateAction and CSScript.CreateFunc<T> for single step delegate creation/loading:

CSScript.CreateAction
var SayHello = CSScript.CreateAction(@"void SayHello(string greeting)
                                       {
                                           Console.WriteLine($""Greeting: {greeting}"");
                                       }");
SayHello("Hello World!");

CSScript.CreateFunc
var product = CSScript.CreateFunc<int>(@"int Product(int a, int b)
                                         {
                                             return a * b;
                                         }");
int result = product(3, 4);

Reviews for this release

No reviews yet for this release.