[mono-android] Could not load type exception (generic interfaces in a class library) Preview 14

Jonathan Pryor jpryor at novell.com
Tue Mar 15 13:24:58 EDT 2011


On Mar 15, 2011, at 11:12 AM, Amir Waldman wrote:
> Thanks Jon, it's getting difficult to recreate the scenario. The logic
> behind my code is complex.

Then LinkSdkOnly is likely the best solution, though #679599 has been fixed, making the linker slightly more intelligent about what it preserves... That might be sufficient (though you won't know until the next release).

Additionally, there is a `mandroid --linkskip=ASSEMBLIES` option, which disables linking for the comma-separated list of assemblies. You can include this in your .csproj by using $(MandroidExtraArgs):

	<PropertyGroup>
		<MandroidExtraArgs>--linkskip=A.dll,B.dll</MandroidExtraArgs>
	</PropertyGroup>

So if you have a set of assemblies that you don't want linked at all, you can use that mechanism to skip them.

 - Jon



More information about the Monodroid mailing list