[mono-android] Linker crashing "Failed to resolve System.Console setforegroundcolor"

Jonathan Pryor jonp at xamarin.com
Thu Oct 4 19:08:17 UTC 2012


On Oct 3, 2012, at 8:12 PM, Liam Houlahan <liamhoulahan at gmail.com> wrote:
> The point I was trying to make when I said that I initially built this app using the initial versions of MonoDroid is that it used to work fine. The app is on Google Play right now. It is only since I am building the app with the newer version of MonoDroid that the linker no longer works.

Which version of Mono for Android did you use to package your previous version? A lot has changed in the linker over the past year...

	http://docs.xamarin.com/android/Releases/Mono_For_Android_1/Mono_For_Android_1.9.0#Major_Highlights
	http://docs.xamarin.com/android/Releases/Mono_For_Android_1/Mono_For_Android_1.9.1#Changes_Since_Mono_for_Android_1.9.0

The linker now does a better job at visiting all possible members are removing the ones that (it thinks) can't be used, resulting in smaller application sizes. However, this also results in a requirement that every type & member that is used by User Assemblies actually exist, and System.Console.ForegroundColor has _never_ existed in Mono for Android.

 - Jon



More information about the Monodroid mailing list