Release v3.10.0.0

Rating: No reviews yet
Downloads: 870
Change Set: d9c4c541f018
Released: Jan 12, 2016
Updated: Jan 12, 2016 by oleg_s
Dev status: Stable Help Icon

Recommended Download

Application cs-script.7z
application, 8978K, uploaded Jan 12, 2016 - 655 downloads

Other Available Downloads

Application cs-script.ExtensionPack.7z
application, 926K, uploaded Jan 12, 2016 - 112 downloads
Application cs-scriptDocs.7z
application, 3550K, uploaded Jan 12, 2016 - 103 downloads

Release Notes

First release with Roslyn support
  • Standalone execution
    • Added -force[:delay] option to specify the delay for the next forced downloading by number of seconds since last download. This option is useful for preventing frequent download interruptions
    • Fixed problem with accidental dependency on CSS_NUGET envar.
  • Hosting script engine
    • Implemented a generic IEvaluator interface (CSScript.Evaluator) for access unified evaluation functionality based on Mono, Roslyn and CodeDom compiler services.
Now you can globally change the compiler at runtime without affecting the hosting code:
CSScript.EvaluatorConfig.Engine = EvaluatorEngine.Roslyn;
                                //EvaluatorEngine.Mono;
                                //EvaluatorEngine.CodeDom;

var sqr = CSScript.Evaluator
                  .CreateDelegate(@"int Sqr(int a)
                                    {
                                        return a * a;
                                    }");

var r = sqr(3);

Or explicitly withing a local scope:
var sqr = CSScript.MonoEvaluator
                  .CreateDelegate(@"int Sqr(int a)
                                    {
                                        return a * a;
                                    }");

var r = sqr(3);

Reviews for this release

No reviews yet for this release.