[Mono-dev] Re: NET 2.0 in embedded mono 1.1.13

Zoltan Varga vargaz at gmail.com
Fri Apr 7 11:53:34 EDT 2006


The assembly you pass to mono_jit_init () should a net 2.0 assembly so the
runtime knows it has to load mscorlib from net 2.0.

             Zoltan

On 4/7/06, Robert Jordan <robertj at gmx.net> wrote:
> Hi Thomas,
>
> > Hi Robert,
> >
> >>> i'm sure that's a dumb question, but i'm clueless about its solution....
> >>> In my classes i'm using the NET 2.0 class
> >>> System.Reflection.Emit.DynamicMethod, which i compiled with Microsoft
> >>> Visual C# 2005.
> >>> When i want to load those assemblies into my embedded mono engine i
> >>> get the error pasted below.
> >>> Is that a mono bug or do i have to enable NET 2.0 features somehow?
> >>
> >> It's a feature. IIRC, you first need to execute the entry point
> >> of a 2.0 assembly. This will activate the 2.0 profile.
> >
> > hmmmm, any examples for that? What _is_ this special entry point?
>
> Nothing special: static void Main () {} ;-)
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list