ScriptCS v0.17.0 Release NotesRelease Date: 2017-02-12 // over 5 years ago
🚀 This Release
🚀 This is the first release in a while for scriptcs. It includes some great new features such as Pretty Printing, Support for NuGet credentials, enrichment to the execution environment and more!
📦 For API users (hosting or other programmatic usage), there is one major change, the removal of members exposing Common.Logging types (#1189) from the public API. These were deprecated in version 0.15.0. As a result, the ScriptCs.Core NuGet package no longer takes a dependency on the Common.Logging package.
💥 Breaking API Changes
High impact : Common.Logging types have been removed from the scriptcs public API.
Medium impact : The ScriptCs.Core NuGet package no longer takes a dependency on the Common.Logging package. If you are using Common.Logging for other purposes, after upgrading your project to ScriptCs.Core 0.17.0 you should check to see if NuGet has removed Common.Logging. If so, you will have to reinstall it yourself.
Low impact :
Affects hosters / module authors only
IConsoleinterface has a new
- 🖨 The
IScriptEnvironmentinterface has new members
- 📜 The
FilePreProcessResultclasses have a new member:
🆕 New Features
- 🌲 Common Logging is gone! (#1190) - by @glennblock. Kudos to @adamralph for getting everything in place to allow the surgical removal.
- 🖨 Pretty printing support has now been added to the REPL (#1156) - by @gregoryyoung
🍱 [screen shot 2017-02-11 at 10 46 24 pm] (https://cloud.githubusercontent.com/assets/141124/22864844/8de41d34-f10d-11e6-9f9a-5091f5a42812.png)
You can access the compiled script assembly from within a script using the new
Env.ScriptAssemblyproperty. This alleviates having to use reflection or jump through hoops to get the script assembly (#244) - by @glennblock
#load child.csxConsole.WriteLine("Main script:" + Env.ScriptPath); Console.WriteLine("Loaded scripts:");Console.WriteLine("\t" + String.Join(Environment.NewLine + "\t", Env.LoadedScripts.ToArray())); Console.WriteLine("Assembly:" + Env.ScriptAssembly);
➕ Added a ScriptCs Nuget package which has all the binaries. This allows running scripts like on a CI server simply by installing the package from NuGet. Also makes it easy to include ScriptCs binaries in a project. (#1061) - by @glennblock