HOME   SEARCH   CONTACTS 
SSL Powered by WebGUI

Articles on Software Development and Computer Related Topics


Site Menu



 

Mono VB.NET Scripting Host on Debian Linux

An interesting "C# Script Engine" is available at www.csscript.net created by Oleg Shilo. It works fine on Linux Mono and it is possible to specify a magic line in scripts.

Original package contains too many different files, below is a minimal package with a few C# and VB.NET samples to run on linux. It should be extracted to the root of file system.

/etc/profile should contain:
export CSSCRIPT_DIR=/utils/cs-script

Samples can be run as:
/utils/cs-script/samples/run.cs
and 
/utils/cs-script/samples/run.vb

Use following magic line in your script files:
#!/usr/local/bin/mono /utils/cs-script/csslinux.exe

Install the latest Mono 2.0 on Debian Lenny

This description does not pretend to be a super correct solution, it just works. The reason of the hack is a lack of up to date Mono deb packages.

1. Uninstall native debian mono packages using synaptic.
Compile & install from sources mono and vbnc:
./configure
make
make install

2. Copy required libs to /usr/local/lib/mono/2.0/
in ./bashrc add:
export MONO_PATH=/usr/local/lib/mono/2.0

3. For other packages dependant on the mono to install and work you can create an empty deb package which "provides" required functionality. As long as mono installed from sources should already supply all required things such empty deb would be a green light for other packages to install.