Just wanted to add that if you pass -z to mkbundle, you need to pass -lz to gcc. I had problems with the application application with winforms and clean access to work, and I had to copy the machine.config file from C: \ Mono \ etc \ mono \ 4.0 \ machine.config, where my application was. Then I passed --machine-config machine.config to mkbundle.
All these steps are quite confusing and frustrating, why is it not as simple as typing mkbundle --deps app.exe? I tried to make changes to the template used by mkbundle and compile it myself, but it will not work. I went so far as to download the mono source and try to build it all, but I doubt it will work. If anyone can explain what the hell is going on with mkbundle to make it so annoying, I would be interested to contribute.
Joe
source share