Bug 4372 - Mono.Cecil.ResolutionException type load failure
Summary: Mono.Cecil.ResolutionException type load failure
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-04-10 12:17 UTC by ctacke
Modified: 2016-08-03 15:25 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

exception screen shot (39.37 KB, image/png)
2012-04-10 12:17 UTC, ctacke

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description ctacke 2012-04-10 12:17:33 UTC
Created attachment 1645 [details]
exception screen shot

We have occasionally seen a failure when building the release APK for our solution.  Unfortunately I don't have exact repro steps to get to the failure, but I can describe the failure and the fix.

After doing a lot of development and debugging in Debug mode, we get ready to release.  We change to the Release configuration and select the startup project.  We do a clean and successful rebuild, then use the Build menu in Studio to Package the APK.  APK generation fails with a TypeLoadException (screenshot attached). 

The "solution" is to simply hit F5 and let the app get built and then deployed to a connected target device.  Once you do that, Build APK from the menu works just fine.
Comment 1 Jonathan Pobst 2012-04-20 16:04:10 UTC
We've upgraded our Cecil to the latest for 4.1.1, so the TypeLoadException should go away.  However, it'll probably then just reveal the real error.

If/when you get the real error, please open a bug for it so we can track it down.

Thanks for the report!