My first play with Mono
Thursday, July 1st, 2004$ mcs hello.cs
Compilation succeeded
$ ls
hello.cs hello.exe
$ file hello.exe
hello.exe: MS Windows PE 32-bit Intel 80386 console executable
*cough* I’m not sure what I expected, but it wasn’t that! But Debian handles it nicely (and transparently)…
$ /usr/sbin/update-binfmts –display
cli (enabled):
package = mono-common
type = magic
offset = 0
magic = MZ
mask =
interpreter = /usr/bin/cli
detector = /usr/lib/cli/binfmt-detector-cli
python2.3 (enabled):
package = python2.3
type = magic
offset = 0
magic = \x3b\xf2\x0d\x0a
mask =
interpreter = /usr/bin/python2.3
detector =
$ ./hello.exe
Hello World