|
1 | | -C# Script execution engine (.NET Core). Version 4.14.0.0. |
| 1 | +C# Script execution engine (.NET Core). Version 4.14.2.0. |
2 | 2 | Copyright (C) 2004-2026 Oleg Shilo. |
3 | 3 |
|
4 | 4 | Usage: cscs <switch 1> <switch 2> <file> [params] [//x] |
@@ -842,7 +842,8 @@ This directive is used to select compiler services for building a script into an |
842 | 842 | For csc more detailed information see css -ng ? help documentation. |
843 | 843 | roslyn - use Microsoft.CodeAnalysis.CSharp.Scripting.dll (Roslyn). |
844 | 844 | This compiler shows good performance and does not require .NET SDK. Though, it is not suitable for WPF |
845 | | - scripts. ${<==}For roslyn-inproc version of this parameter see css -ng ? help documentation. |
| 845 | + scripts. |
| 846 | + For roslyn-inproc version of this parameter see css -ng ? help documentation. |
846 | 847 | See [this wiki](https://github.com/oleg-shilo/cs-script/wiki/Choosing-Compiler-Engine) for details. |
847 | 848 |
|
848 | 849 | Example: //css_engine csc |
@@ -945,7 +946,29 @@ The following is the optional set of environment variables that the script engin |
945 | 946 | useful for the advanced debugging scenarios. Of the environment variable is not set or the value is not a valid |
946 | 947 | file path then no log file will be created. |
947 | 948 |
|
| 949 | + 'css_cli_roslyn_new_algorithm' |
| 950 | + a non empty envar will trigger the use of a new algorithm of the Roslyn compiler in CLI scenarios. |
| 951 | + This algorithm allows using a normal C# syntax that allows namespaces. |
| 952 | + |
| 953 | + 'css_csc_file' |
| 954 | + the location of the csc.dll from the SDK folder. Useful if the default probing algorithm of the script engine |
| 955 | + cannot find the right compiler file. |
| 956 | + Ie, 'C:\Program Files\dotnet\sdk\10.0.103\Roslyn\bincore\csc.dll'. |
| 957 | + |
| 958 | + 'css_csc_asm_refs_dir' |
| 959 | + the location of the csc.dll from the SDK folder. Useful if the default probing algorithm of the script engine |
| 960 | + cannot find the right compiler file. |
| 961 | + Ie, 'C:\Users\user\.nuget\packages\microsoft.AspNetCore.app.ref\10.0.3\ref\net10.0'. |
| 962 | + |
| 963 | + 'css_prefer_sdk_toolset_nuget' |
| 964 | + controls whether SDK tools are preferred over the SDK NuGet Toolset package. Used when locating csc.exe/dll |
| 965 | + compilers. |
| 966 | + |
948 | 967 | --------- |
| 968 | + |
| 969 | + 'css_csc_file' |
| 970 | + the location of the csc.dll from the SDK folder. |
| 971 | + |
949 | 972 | During the script execution CS-Script always injects a little object inspector class 'dbg'. This class contains static |
950 | 973 | printing methods that mimic Python's 'print()'. It is particularly useful for object inspection in the absence of a |
951 | 974 | proper debugger. |
|
0 commit comments