From dcbf11633661736d429a50b0d564730339f232de Mon Sep 17 00:00:00 2001 From: "oleg.shilo" Date: Sun, 12 Sep 2021 10:07:14 +1000 Subject: [PATCH] Release v4.1.1.0-pre: - Issue #252: System.NullReferenceException: Object reference not set to an instance of an object. (updated API doc) --- .../src/CSScriptLib/CSScriptLib.csproj | 72 ++----------------- .../src/CSScriptLib/EvaluatorBase.cs | 2 +- src/CSScriptLib/src/CSScriptLib/IEvaluator.cs | 2 +- 3 files changed, 7 insertions(+), 69 deletions(-) diff --git a/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj b/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj index 37353f91..a77ce826 100644 --- a/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj +++ b/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj @@ -13,7 +13,7 @@ true snupkg true - 4.1.0.0 + 4.1.1.0-pre Oleg Shilo CS-Script engine Class Library for .NET 5 (C) 2018-2021 Oleg Shilo @@ -23,76 +23,14 @@ https://github.com/oleg-shilo/cs-script.git Git C#, scripting, script, dynamic, .NET. .NET Core - Implementation of Roslyn engine that allows execution of scripts (both CLI and hosted) on the target system without .NET 5 SDK installed. + - Issue #252: System.NullReferenceException: Object reference not set to an instance of an object. (updated API doc) ---- -## Deployment -_**Ubuntu (terminal)**_ -``` -repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.1.0.0/; file=cs-script_4.1-0.deb; rm $file; wget $repo$file; sudo dpkg -i $file -``` -_**Windows (choco)**_ -_Pending approval_ -``` -choco install cs-script --version=4.1.0.0 -``` -It is highly recommended that you uninstall CS-Script.Core: -``` -sudo choco uninstall cs-script.core -``` -_**Manual**_ -Just unpack the corresponding 7z file and start using the script engine executable `cscs`. -If you prefer you can build a shim exe `css` for an easy launch of the script engine process: -``` -cscs -self-exe -``` -The same shim/symbolic link is created if you are installing the CS-Script as a package. - ---- -## Changes - -### _CLI_ - -- Added support for Roslyn engine (no SDK required). See [this wiki](https://github.com/oleg-shilo/cs-script/wiki/Choosing-Compiler-Engine) for details. - - **_Per-execution_** - - From command line: - - ```ps - css -engine:roslyn <script file> - or - css -ng:roslyn <script file> - ``` - - From script code: - - ```C# - //css_engine roslyn - or - //css_ng roslyn - ``` - - **_Global_** - - ```ps - css -config:set:DefaultCompilerEngine=roslyn - ``` - -- Added option to configure build server ports from environment variables -- Issue #235: csc engine cannot compile dll - -### _CSScriptLib_ - -- Issue #245: .Net 5 SDK project, could not run "CompileAssemblyFromCode" -- Issue #244: Some questions about 4.0.2 - `RefernceDomainAsemblies` made obsolete and renamed to `ReferenceDomainAssemblies` - Added extension methods `IEvaluator.ExcludeReferencedAssemblies` + true - 4.1.0.0 - 4.1.0.0 + 4.1.1.0 + 4.1.1.0 MIT css_logo.png diff --git a/src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs b/src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs index 6046e70a..477a7a58 100644 --- a/src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs +++ b/src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs @@ -178,7 +178,7 @@ protected virtual void Validate(CompileInfo info) /// /// CS-Script assembly unloading functionality is implemented as a combination of /// loading assembly into that is marked as "IsCollectible" - /// and the ReflectionExtensions. extension method. + /// and the ReflectionExtensions. extension method. /// Unloading is only available on the runtimes that support it. Otherwise /// throws an exception on attempt to load the compiled script assembly. /// is designed to allow enabling/disabling of the diff --git a/src/CSScriptLib/src/CSScriptLib/IEvaluator.cs b/src/CSScriptLib/src/CSScriptLib/IEvaluator.cs index 042aed7b..90bae01b 100644 --- a/src/CSScriptLib/src/CSScriptLib/IEvaluator.cs +++ b/src/CSScriptLib/src/CSScriptLib/IEvaluator.cs @@ -175,7 +175,7 @@ public interface IEvaluator /// /// CS-Script assembly unloading functionality is implemented as a combination of /// loading assembly into that is marked as "IsCollectible" - /// and the ReflectionExtensions. extension method. + /// and the ReflectionExtensions. extension method. /// Unloading is only available on the runtimes that support it. Otherwise /// throws an exception on attempt to load the compiled script assembly. /// is designed to allow enabling/disabling of the