Eoin Coffey wrote: > Hello, > > 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. > System.Collections.Generic.Dictionary`2). > > I found this thread on my problem: > > http://lists.ximian.com/pipermail/mono-devel-list/2006-April/018039.html > > 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: MonoDomain * mono_jit_init_version (const char *file, const char *runtime_version); runtime_version can be one of: "v1.1.4322" (1.1) "v2.0.50727" (2.0) Robert _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
