-
Notifications
You must be signed in to change notification settings - Fork 370
0.17.0 #1204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A bunch of fixes for Roslyn engine (0.16.1 hotfix)
load assembly into AppDomain in CSharpPersistentEngine
Pretty Printing
made Namespaces collection immutable and relevant methods virtual #1040
* Adding brew build script * Removing whitespace
Sending Common.Logging to oblivion!
…leCop ignore for LibLog and LineEditor
Adding ScriptPath to Env
Adding unit tests for ScriptInfo
Refactoring ScriptEnvironment to use IScriptInfo directly
Adding Env.ScriptAssembly
…ibraries can assume it is properly set
Forcing ScriptAssembly to be set when a script first runs, this way l…
Changing DarkRed to Red, fix for #1198
Word wrap the Repl Command description in the Help Command
Fixing tests I broke and slight refactoring
Adds support for single line comments at the top of a file before dir…
Fixes handling of relative paths. Fix for #1193
Updating to Nuget.Core 2.14.0
Removing automatically showing usage
Fixing unit test to not expect args
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Get it via svm or Chocolatey! Homebrew PR pending.
Special thanks to: @BlackFrog1, @gregoryyoung, @aarondandy, and @rickardp for their contributions to this release.
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 newWidthparameter.IScriptEnvironmentinterface has new membersAddCustomPrinter<T>),Print<T>(),ScriptPath,LoadedScripts,ScriptAssembly, andInitialize().FileParserContextandFilePreProcessResultclasses have a new member:ScriptPathIssue Details
New Features
![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 now access the main script and any loaded script paths using the new
Env.ScriptPathandEnv.LoadedScriptsproperties (Access currently running (or possibly main) script #225) - by @glennblockYou 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 (Expose a reference to the current script assembly #244) - by @glennblockAdded 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. (Publish scriptcs.exe as its own nuget package #1061) - by @glennblock
Added new
-eand--evaloptions for allowing execution of code passed at the command line. (Currently does not work with svm due to a bug) (Allow passing code to scriptcs at the command line #1085) - by @glennblockGlobal Credential provider can now be set for NuGet. (Use packageSourceCredentials when interacting with feeds #1018) - by @aarondandy
Fixes
REPL command help displays formatted to the width of the terminal. (Word wrap the Repl Command description in the Help Command #1047) -by @BlackFrog1
Char literals are properly handled if they have escape chars. (The Mono engine is unable to handle escape sequences in char literals #1143) - by @rickardp
Compilation into cache no longer throws a ScriptCompilationException (Compilation into cache leads to ScriptCompilationException #1153) - by @filipw
Stylecop removed from test projects, LibLog and Mono LineEditor (Fixing StyleCop issues. Removing StyleCop form tests. Also adding Sty… #1191) - by @glennblock
Changed errors to always show in Red as opposed to Dark Red to address readability (Is there a way to change the colors for output? #1198) - by @glennblock
Comments can now be before directives. (Comments in the head of a script file must not throw the error "Encountered directive after the start of code" #1185) - by @glennblock
Relative paths are now handled properly (When launching a script using a relative path, the working directory is the current path NOT the script path #1193) - by @glennblock
Updated to Nuget.core 2.14.0 fixes error with ScriptCs.OctopusClient script pack (Updating to Nuget.Core 2.14.0 #1208) - by @glennblock