6

Generating a Linux executable with Mono with mkbundle

view full story
linux-howto

http://unix.stackexchange.com – A C# file in mono can be compiled using gmcs command. This will create a hello.exe file. $ gmcs hello.cs $ ls hello.cs hello.exe $ ./hello.exe Hello from Mono! To generate a linux executable, I tried this command, but it generates the error: $ gmcs /t:exe hello.cs /out:hello Unhandled Exception: System.ArgumentException: Module file name 'hello' must have file extension. I want create a standalone executable so that I can execute it simply run it by saying and I get the desired output: $ ./hello Hello from Mono! I searched and found a solution which mentions of a tool called mkbundl (HowTos)