[Mono-dev] mkbundle --mono : Cannot find assembly
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Fri Jan 29 12:00:45 UTC 2016
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Rajesh Khan
> /Users/User/MyApp/ext/mono/bin/mkbundle -o createcore_managed.c -
> oo createcore_managed_deps.o -c --nomain --config-dir
> /Users/User/MyApp/ext/mono/etc --config
> /Users/User/MyApp/ext/mono/etc/mono/config --machine-config
> /Users/User/MyApp/ext/mono/etc/mono/4.5/machine.config --mono
> /Users/User/MyApp/ext/mono/lib/mono/4.5/ --deps /Users/User/MyApp-
> Build/bin/CreateCore.dll /Users/User/MyApp-Build/bin/FM.dll
> /Users/User/MyApp-Build/bin/FSLLINK.dll /Users/User/MyApp-
> Build/bin/Ionic.Zlib.dll /Users/User/MyApp-Build/bin/PList.dll
> /Users/User/MyApp-Build/bin/Renci.SshNet.dll /Users/User/MyApp-
> Build/bin/MIConvexHullPlugin.dll /Users/User/MyApp-
I don't know if the options to mkbundle have changed over the years, perhaps the project you're building used an old version or something like that, but I know (man mkbundle) that currently --mono isn't an option to mkbundle. Neither is --config.
If that's the build process the project gives you, obviously you have to do whatever they support, but in general, mkbundle isn't necessary, isn't beneficial, and doesn't work great. What mkbundle does is kind of analogous to static linking. It's supposed to build a binary that has copies of all the dynamic libraries built-in to it, so it's not pulling from the dynamic libraries at runtime.
If the project gives you any other build method, that doesn't involve mkbundle, give that a try.
> I downloaded the mono project from the git resource
> git clone https://github.com/mono/mono.git
There's also usually no reason for you to build mono from source, unless you want to develop mono internals. Usually the best thing to do is follow the instructions on http://www.mono-project.com/download/
Caveat: On redhat systems, the mono yum repo only supports the latest version. (No centos6). In that case, there's probably some external repo that could get you a recent version of mono, but I don't know off the top of my head.
More information about the Mono-devel-list