{"action":"created","issue":{"url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/203","repository_url":"https://api.github.com/repos/JeremySkinner/FluentValidation","labels_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/203/comments","events_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/203/events","html_url":"https://github.com/JeremySkinner/FluentValidation/issues/203","id":132988920,"number":203,"title":"Xamarin Android / iOS Linker Exception","user":{"login":"jamsoft","id":2502211,"avatar_url":"https://avatars.githubusercontent.com/u/2502211?v=3","gravatar_id":"","url":"https://api.github.com/users/jamsoft","html_url":"https://github.com/jamsoft","followers_url":"https://api.github.com/users/jamsoft/followers","following_url":"https://api.github.com/users/jamsoft/following{/other_user}","gists_url":"https://api.github.com/users/jamsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/jamsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamsoft/subscriptions","organizations_url":"https://api.github.com/users/jamsoft/orgs","repos_url":"https://api.github.com/users/jamsoft/repos","events_url":"https://api.github.com/users/jamsoft/events{/privacy}","received_events_url":"https://api.github.com/users/jamsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-11T14:32:58Z","updated_at":"2016-02-12T10:45:56Z","closed_at":null,"body":"I'm currently trying to get to the bottom of issues I'm having using FluentValidation within my Xamarin solution.  The Linker stage of the build fails and details FluentValidation is the source of the problem.\r\n\r\nThe build exception I see is:\r\n\r\nC:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.Android.Common.targets(1504, 5): error MSB4018: The \"LinkAssemblies\" task failed unexpectedly.\r\nXamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item '!!0[] System.Array::Empty()' (defined in 'FluentValidation, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null') from 'FluentValidation, Version=6.1.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve !!0[] System.Array::Empty()\r\n   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)\r\n   at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)\r\n   at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)\r\n   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)\r\n   at Mono.Linker.Steps.MarkStep.ProcessQueue()\r\n   at Mono.Linker.Steps.MarkStep.Process()\r\n   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)\r\n   at Mono.Linker.Pipeline.Process(LinkContext context)\r\n   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)\r\n   at Xamarin.Android.Tasks.LinkAssemblies.Execute()\r\n   --- End of inner exception stack trace ---\r\n   at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)\r\n   at Xamarin.Android.Tasks.LinkAssemblies.Execute()\r\n   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() \r\n\r\nSo I cloned this repository to my machine to see if there way anything obvious I could see.  I can compile the portable projects without any changes or errors to the vs-2015 solution however the resultant library is v 5.6.2.0 whereas my project is referencing 6.1.0.0\r\n\r\nDo you have any insights on this issue?  What versions of Xamarin / Mono is the latest version built against?"},"comment":{"url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/comments/183268537","html_url":"https://github.com/JeremySkinner/FluentValidation/issues/203#issuecomment-183268537","issue_url":"https://api.github.com/repos/JeremySkinner/FluentValidation/issues/203","id":183268537,"user":{"login":"jamsoft","id":2502211,"avatar_url":"https://avatars.githubusercontent.com/u/2502211?v=3","gravatar_id":"","url":"https://api.github.com/users/jamsoft","html_url":"https://github.com/jamsoft","followers_url":"https://api.github.com/users/jamsoft/followers","following_url":"https://api.github.com/users/jamsoft/following{/other_user}","gists_url":"https://api.github.com/users/jamsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/jamsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamsoft/subscriptions","organizations_url":"https://api.github.com/users/jamsoft/orgs","repos_url":"https://api.github.com/users/jamsoft/repos","events_url":"https://api.github.com/users/jamsoft/events{/privacy}","received_events_url":"https://api.github.com/users/jamsoft/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T10:45:56Z","updated_at":"2016-02-12T10:45:56Z","body":"Well, thats helpful."}}