

RUN EXE ON MAC MONO LICENSE
Proprietary license for Mono from -z Compresses the assemblies before embedding. If you want to use this for commercial licenses, you must obtain a
RUN EXE ON MAC MONO UPGRADE
Important: Since the Mono runtime is licensed under the LGPL, even if you use static you should transfer the component pieces of the mkbundle to your users so theyĪre able to upgrade the Mono runtime on their own.

This option causes it to statically link instead. static By default mkbundle dynamically links to mono and glib. config-dir DIR When passed, DIR will be set for the MONO_CFG_DIR environment variable nomain With the -c option, generate the host stub without a main() function. machine-config FILE Uses the given FILE as the nfig file for the generated application. keeptemp By default mkbundle will delete the temporary files that it uses to produce the bundle. deps This option will bundle all of the referenced assemblies for the assemblies listed on the command line option. nodeps This is the default: mkbundle will only include the assemblies that were specified on the command line to reduce the size of the resulting image Typically this is $prefix/etc/mono/1.0/nfig or $prefix/etc/mono/2.0/nfig depending on the profile that you are using (1.0 or 2.0) Specifies that a nfig file must be bundled as well. The rules are the same as for the compiler -lib: or -L flags. L path Adds the 'path' do the search list for assemblies. oo filename Specifies the name to be used for the helper object file that contains the bundle.

If not, this contains the resulting executable. If the flag -c is specified, this is the C host program. c Produce the stub file, do not compile the resulting stub.
RUN EXE ON MAC MONO CODE
Call mono_mkbundle_init() before initializing the JIT in your code so that theīundled assemblies are available to the embedded runtime. The resulting host.c file will not have a main() function. $ cc host.c bundles.o /usr/lib/libmono.a -lc -lrtYou may also use mkbundle to generate a bundle you can use when embedding the Mono runtime in a native application. For example, this could be used to link some libraries statically: $ mkbundle -c -o host.c -oo bundles.o -deps hello.exe To link additional libraries or control the generated output in more detail. In addition, it is possible to control whether mkbundle should compile the resulting executable or not with the -c option. Notice that the produced image still contains the CIL image and no precompilation is Use mkbundleFP when you want the startup runtime to load the 1.0 profile, and use mkbundle2 when you want the startup runtime to load the 2.0įor example, to create a bundle for hello world, use the following command: $ mkbundle -o hello hello.exeThe above will pull hello.exe into a native program called "hello". To automatically includeĪll of the dependencies referenced, use the "-deps" command line option. By default only the assemblies specified in the command line will be included in the bundle. Mkbundle assembly1 Description mkbundle generates an executable program that will contain static copies of theĪssemblies listed on the command line. Mkbundle, mkbundle2 - Creates a bundled executable.
