Skip to content

Release v3.24.0

Compare
Choose a tag to compare
@oleg-shilo oleg-shilo released this 14 Feb 05:40
· 806 commits to master since this release

Use choco install cs-script to deploy the release (instructions on how to use/enable choco).
If you prefer manual install then avoid using WinZip or WinRar as they lead to locking the downloaded content. Use 7zip instead.

Extension Pack contains some additional content representing somewhat less mainstream functionality and experimental features. For installing it extract cs-script.ExtensionPack.7z archive to your install location (e.g. C:\ProgramData\chocolatey\lib\cs-script\tools\cs-script).


  • Issue #45: Deprecation in wsdl.cs
    • Fixed setting EntryScript env variable. Previously it was set after execution of 'pre-scripts'.

    • Updated wsdl.cs to reflect use EntryScript anv variable.

      static string ResolveOutputLocation(string file)
      {
          string primaryScriptFile = Environment.GetEnvironmentVariable("EntryScript");
          ...
      }
  • Issue #44: Neither AsmHelper nor Compiling provides the additional directories specified by //css_searchdir
    • Added CompilingInfo.ParsingContext that contains all parsing result data without resorting to store the whole parser.

    • Added CSScript.LastCompilingResult, which is always set to the CompilingInfo of the last operation as opposite to the CSScript.CompilingHistory log that is kept only if enabled.

    • Added SimpleAsmProbing for simple assembly probing within specified dirs. Supports using statement declaration.

      var script = CSScript.Load("printer.cs");
      
      var search_dirs = CSScript.LastCompilingResult.ParsingContext.SearchDirs;
      
      using (SimpleAsmProbing.For(search_dirs))
      {
          dynamic printer = script.CreateObject("Printer");
          printer.Print("Hello World!");
      }
  • All sample/lib scripts are now under source control: https://github.com/oleg-shilo/cs-script/tree/master/Source/deployment
  • Added -preload command for preloading "heavy" compilers (e.g. Roslyn)
  • Further AutoclassGenerator improvements (IDE integration related)
  • Further removal of net1 conditional compilations