On May 11, 2012, at 1:20 PM, Tossing, Chris wrote: > So, if I retarget my Windows project to "Regular" .NET 4.0, that DLL should > be consumable by M4A and MT apps, right?
No, because MfA and MT have a different set of types. .NET 4.0 mscorlib.dll contains e.g. Microsoft.Win32.Registry and related types, which MonoTouch and Mono for Android lack (though the mscorlib.dll differences are rather small). System.dll, though, is lacking System.CodeDom, more Microsoft.Win32 types, System.Configuration, lots of System.Diagnostics, etc. The types and members that are "missing" are in-line with what Silverlight/WP7 are missing, compared to desktop .NET. In any event, until all parties fully support Portable Libraries, it isn't safe to take assemblies built against one profile and run them against another. It _may_ work, but it might not. The safest way to go is to have separate projects per runtime target, and Link your source code into each project. This allows you to have one set of source code and one set of assemblies per target platform. - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
