Bug 58797 - Linker fails on latest Xamarin.Forms
Summary: Linker fails on latest Xamarin.Forms
Status: RESOLVED DUPLICATE of bug 58711
Alias: None
Product: Android
Classification: Xamarin
Component: Linker ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Radek Doulik
URL:
Depends on:
Blocks:
 
Reported: 2017-08-16 00:29 UTC by Chad Magendanz
Modified: 2017-08-16 17:43 UTC (History)
2 users (show)

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


Attachments
Project (redacted) and Output.log (148.84 KB, application/x-zip-compressed)
2017-08-16 00:29 UTC, Chad Magendanz
Details


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 or GitHub 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:
Status:
RESOLVED DUPLICATE of bug 58711

Description Chad Magendanz 2017-08-16 00:29:32 UTC
Created attachment 24212 [details]
Project (redacted) and Output.log

I'm regularly getting...

The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'Android.Views.View Xamarin.Forms.Platform.Android.TextCellRenderer::GetCellCore(Xamarin.Forms.Cell,Android.Views.View,Android.Views.ViewGroup,Android.Content.Context)' in assembly: 'Xamarin.Forms.Platform.Android.dll' ---> System.ArgumentNullException: Value cannot be null.
Parameter name: instruction
   at Mono.Cecil.Cil.InstructionOffset..ctor(Instruction instruction)
   at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)

I'm building ARM & x86 with ProGuard disabled and Linking set to "Sdk Assemblies Only".  Works fine with Linking set to None and I can usually get the project to successfully build and deploy after Clean Solution, but not when rebuilding.  However, I've never been able to successfully Archive because that seems to kick off two builds, and the 2nd one always fails.

Visual Studio 2017 - 15.3.0 Preview 7.1
Xamarin - 4.7.0827 (ddd8750)
Xamarin.Android SDK - 7.5.0.3 (3e66e8e)

Nuget packages: (see attached)
Xamarin Forms - 2.3.5.256-pre6


Output log: (see attached)
Comment 1 Jon Douglas [MSFT] 2017-08-16 17:43:02 UTC

*** This bug has been marked as a duplicate of bug 58711 ***