Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Linker removed array method for getting by index

RedRaRedRa Member ✭✭✭

I have create class that is represent Google Person:

    public partial class User
        public string ResourceName { get; set; }

        public string Etag { get; set; }

        public UserMetadata Metadata { get; set; }

        public Locale[] Locales { get; set; }

        public Name[] Names { get; set; }

        public Photo[] CoverPhotos { get; set; }

        public Photo[] Photos { get; set; }

        public EmailAddress[] EmailAddresses { get; set; }

And got the following error during run debugger:

Severity Code Description Project File Line Suppression State
Error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Void .Forms.Pages.LoginPage/d__11::MoveNext()' in assembly: '.Forms.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve .Shared.Social.Google.Name[] .Shared.Social.Google.User::get_Names()
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
at Xamarin.Android.Tasks.AndroidTask.Execute() 0

Seems like Linker removed array method for getting by index Name field ...

How to resolve this issue ???

Sign In or Register to comment.