I've been stuck with this compiler error for a while now, my project is a UWP Universal Windows Platform, with Xamarin.Forms 4.1, along with a set of nuget packages, and for some time when enabled the .NET Native tool chain option I get the following error:
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Internal compiler error: MCG0024:UnresolvableTypeReference Unresolvable type reference 'System.Runtime.InteropServices.HandleRef' in 'Assembly(Name=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)' found. Please check the references in your build system. A reference is either missing or an assembly is missing an expected type.
I've tried a set of solutions, updating Visual Studio to Update 3, UWP Developer Tools 1.4 with no success, the error remains the same... the only way to get rid of this error is compiling without the .NET Native options, but that's not an a option since we need to need to pass the Windows Certification thing...
Any clues?