Skip to content

CS Script on Linux

Oleg Shilo edited this page Aug 13, 2017 · 10 revisions

--- under constructions ---

The following is a minimal set of instructions for preparing CS-Script running on Linux with full support for C# 7.

mono cscs.exe -config:create
mono cscs.exe -config:set:UseAlternativeCompiler=CSSRoslynProvider.dll
mono cscs.exe -config:set:DefaultRefAssemblies="System.Core.dll;System.dll;System.ValueTuple.dll"
mono cscs.exe -config:set:SearchDirs=%MONO%/4.5/Facades

Ensure you have Mono v5.0.1 or higher and CSSRoslynProvider is present in the same folder where cscs.exe is. Both represent the minimal binary set required for CS-Script to work on Linux and support C#7. The files are currently available from VSCode repository:
https://github.com/oleg-shilo/cs-script.vscode/blob/master/bin/CSSRoslynProvider.dll
https://github.com/oleg-shilo/cs-script.vscode/blob/master/bin/cscs.exe