Skip to content

Commit

Permalink
Release v4.1.1.0-pre:
Browse files Browse the repository at this point in the history
- Issue #252: System.NullReferenceException: Object reference not set to an instance of an object. (updated API doc)
  • Loading branch information
oleg.shilo authored and oleg.shilo committed Sep 12, 2021
1 parent 0faee64 commit dcbf116
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 69 deletions.
72 changes: 5 additions & 67 deletions src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>4.1.0.0</Version>
<Version>4.1.1.0-pre</Version>
<Authors>Oleg Shilo</Authors>
<Description>CS-Script engine Class Library for .NET 5</Description>
<Copyright>(C) 2018-2021 Oleg Shilo</Copyright>
Expand All @@ -23,76 +23,14 @@
<RepositoryUrl>https://github.com/oleg-shilo/cs-script.git</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>C#, scripting, script, dynamic, .NET. .NET Core</PackageTags>
<PackageReleaseNotes>Implementation of Roslyn engine that allows execution of scripts (both CLI and hosted) on the target system without .NET 5 SDK installed.
<PackageReleaseNotes>- 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 &lt;script file&gt;
or
css -ng:roslyn &lt;script file&gt;
```

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`</PackageReleaseNotes>
</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<FileVersion>4.1.0.0</FileVersion>
<AssemblyVersion>4.1.1.0</AssemblyVersion>
<FileVersion>4.1.1.0</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>css_logo.png</PackageIcon>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected virtual void Validate(CompileInfo info)
/// <summary>
/// CS-Script assembly unloading functionality is implemented as a combination of
/// loading assembly into <see cref="AssemblyLoadContext" /> that is marked as "IsCollectible"
/// and the <c>ReflectionExtensions</c>.<see cref="ReflectionExtensions.Unload(Assembly)" /> extension method.
/// and the <c>ReflectionExtensions</c>.<see cref="AssemblyUnloadingExtensions.Unload(Assembly)" /> extension method.
/// Unloading is only available on the runtimes that support it. Otherwise <see cref="AssemblyLoadContext" />
/// throws an exception on attempt to load the compiled script assembly.
/// <para><see cref="IsAssemblyUnloadingEnabledled" /> is designed to allow enabling/disabling of the
Expand Down
2 changes: 1 addition & 1 deletion src/CSScriptLib/src/CSScriptLib/IEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public interface IEvaluator
/// <summary>
/// CS-Script assembly unloading functionality is implemented as a combination of
/// loading assembly into <see cref="System.Runtime.Loader.AssemblyLoadContext"/> that is marked as "IsCollectible"
/// and the <c>ReflectionExtensions</c>.<see cref="CSScripting.ReflectionExtensions.Unload(Assembly)"/> extension method.
/// and the <c>ReflectionExtensions</c>.<see cref="CSScripting.AssemblyUnloadingExtensions.Unload(Assembly)"/> extension method.
/// Unloading is only available on the runtimes that support it. Otherwise <see cref="System.Runtime.Loader.AssemblyLoadContext"/>
/// throws an exception on attempt to load the compiled script assembly.
/// <para><see cref="IsAssemblyUnloadingEnabledled"/> is designed to allow enabling/disabling of the
Expand Down

0 comments on commit dcbf116

Please sign in to comment.