[Mono-list] Embedding Mono and .Net 2.0 assemblies

Eoin Coffey ecoffey at gmail.com
Fri Jul 27 11:02:08 EDT 2007


Perfect, thank you!

-Eoin

On 7/27/07, Robert Jordan <robertj at gmx.net> wrote:
>
> 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.0stuff
> > 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  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070727/b4beeb52/attachment-0001.html 


More information about the Mono-list mailing list