Creating a Mono bundle using Windows

A Mono bundle allows C# applications build using Mono to be distributed and executed on computers without the Mono framework being installed.

1.Download Mono 2.6.1

2.Downloaded cgywin 1.7.1

3.Installed packages gcc-mingw, mingw-zlib and pkg-config for cgywin

4.Started cgywin and edited .bashrc e.g. C:/progra~2/notepad++/notepad++ $HOME/.bashrc

5.Added $HOME/.bashrc export PATH=$PATH:/cygdrive/c/progra~2/Mono-2.6.1/bin

6.Added $HOME/.bashrc export PKG_CONFIG_PATH=/cygdrive/c/progra~2/Mono 2.6.1/lib/pkgconfig

7.Quit & restarted cygwin

8.Changed directory to .Net application

9.Compile the solution using xbuild

10.Change directory to bin folder e.g. binDebug  11.mkbundle -o Setup SetupForm.exe –deps -z  12.Copied native mono dlls to binDebug folder (mono.dll, libglib-2.0-0.dll, libgthread-2.0-0.dll, zlib.dll)