Roslyn CLI compiler engine fails on Linux.
Impacted version: v4.14.2
Unimpacted version: v4.13.2
Test
dotnet cscs.dll -ng:csc -speed
Output:
Error: Specified file could not be compiled.
/tmp/csscript.core/snippets/-1916996131.140068.cs(0,0): error CS0518: Predefined type 'System.Void' is not defined or imported
/tmp/csscript.core/snippets/-1916996131.140068.cs(0,0): error CS0518: Predefined type 'System.String' is not defined or imported
/tmp/csscript.core/cache/-1462748297/-1916996131.140068.attr.g.cs(1,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
/tmp/csscript.core/cache/-1462748297/-1916996131.140068.attr.g.cs(1,59): error CS0518: Predefined type 'System.String' is not defined or imported
Context
- Works as expected on Windows
- The compiler is located correctly:
C# Script execution engine (.NET Core). Version 4.14.2.0.
Copyright (C) 2004-2026 Oleg Shilo. www.csscript.net (github.com/oleg-shilo/cs-script)
CLR: 10.0.3
System: Unix 6.6.87.2
Architecture: x64
Script engine: /home/user/lnx-build/cs-script_4.14-2/usr/local/bin/cs-script/cscs.dll
Launcher: /usr/lib/dotnet/dotnet
Compiler engine: csc (/usr/lib/dotnet/sdk/10.0.103/Roslyn/bincore/csc.dll)
of dotnet (/usr/lib/dotnet/dotnet)
NuGet manager: dotnet
NuGet cache: <not found>
Script cache: /tmp/csscript.core/cache
Roslyn CLI compiler engine fails on Linux.
Impacted version: v4.14.2
Unimpacted version: v4.13.2
Test
Output:
Context
C# Script execution engine (.NET Core). Version 4.14.2.0. Copyright (C) 2004-2026 Oleg Shilo. www.csscript.net (github.com/oleg-shilo/cs-script) CLR: 10.0.3 System: Unix 6.6.87.2 Architecture: x64 Script engine: /home/user/lnx-build/cs-script_4.14-2/usr/local/bin/cs-script/cscs.dll Launcher: /usr/lib/dotnet/dotnet Compiler engine: csc (/usr/lib/dotnet/sdk/10.0.103/Roslyn/bincore/csc.dll) of dotnet (/usr/lib/dotnet/dotnet) NuGet manager: dotnet NuGet cache: <not found> Script cache: /tmp/csscript.core/cache