[Mono-list] Embedded mono doesn't support generic types
Miguel de Icaza
miguel at ximian.com
Thu Dec 21 14:25:36 EST 2006
Hello,
> I’ve got a DLL assembly containing some generic types that runs fine
> when linked to a .NET app and run from the command line. However,
> when I call into same assembly via embed mono into a Cocoa app I get a
> TypeLoadException. If I remove the generic types it runs fine. Is
> there something I need to call on the embedded API to enable generic
> support?
You need to ensure that your startup assembly is compiled against 2.0,
because that will mandate which corlib will be used, and based on this
the runtime picks the 1.0 or 2.0 support.
Miguel
>
More information about the Mono-list
mailing list