-
Notifications
You must be signed in to change notification settings - Fork 231
CS Script on Linux
CS-Script requires Mono v5.0.1 or higher. Note that since Mono is hosted on the custom package repository it's not included into cs-scrip[t package as a dependency and you wil be required to install it manually with 'sudo apt-get install mono-complete'
. See http://www.mono-project.com/download for details.
-
Download the latest package (
cs-script_<max_ver>.deb
) from the cs-script/bin/linux/ubuntu/ GitHub folder. -
Install the package either by double-clicking the *.deb file or with
'sodo dpkg -i cs-script_*.deb'
.
Note, CS-Script has a built-in update functionality. You can always check for updated and update CS-Script by using -update
switch:
Updating to the latest version:
sudo cscs -update
Checking for updates:
cscs -update -check
--- under development ---
-
Ensure you have Mono v5.0.1 or higher.
-
Copy binaries (cscs.exe, CSSRoslynProvider.dll) into
/usr/lib/cs-script/bin
(or/usr/local/lib/cs-script/bin
). The binaries are available from the following GitHub locations:
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 -
Add execute permissionto the script engine exectable:
sudo chmod +x /usr/lib/cs-script/bin/cscs.exe
-
Create symlink to the script engine file:
sudo ln -s /usr/lib/cs-script/bin/cscs.exe /usr/bin/cscs
-
Enable Roslyn:
sudo cscs -config:set:roslyn
The following is a few useful configuration settings for CS-Script on Linux.
sudo cscs -config:set:DefaultRefAssemblies=add:"System.ValueTuple.dll"
sudo cscs -config:set:SearchDirs=add:%MONO%/4.5/Facades