[Mono-list] Embedding Mono and .Net 2.0 assemblies
robertj at gmx.net
Fri Jul 27 10:48:29 EDT 2007
Eoin Coffey wrote:
> I'm working on embedding mono into a C application. Recently I moved some
> of the relevant C# code over to using .net 2.0 constructs (like generics).
> Everything happily compiled with gmcs. The problem I'm having is when my
> embedded runtime attempts to load an assembly with references to 2.0 stuff
> it can not find the required dlls (i.e.
> I found this thread on my problem:
> The solution in defined there seems odd, since you pass a char* to
> mono_jit_init that is the name of the AppDomain you're operating under,
> unless I'm mistaken.
> So in short my question is, is passing the assembly to mono_jit_init the
> right solution, or do I need to do something else / extra?
It's correct. Another way to force a specific version is
using this public function:
mono_jit_init_version (const char *file, const char *runtime_version);
runtime_version can be one of:
More information about the Mono-list