.NET Toolchain Issues - Compiling Store/Release Builds (UWP)

simeonsimeon USMember ✭✭
edited January 2017 in Xamarin.Forms

Hi,

I have recently encountered an issue whereby when compiling with .NET toolchain enabled, or compiling a store release where the toolchain is enabled forcefully causes the following error from the compiler;

C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : System.NotSupportedException: Cannot deserialize type 'Xamarin.Forms.Font' because it contains property 'FontFamily' which has no public setter.
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.TypeScope.GetSettableMembers(StructMapping mapping, ArrayList list)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.TypeScope.GetSettableMembers(StructMapping structMapping)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializationReaderCodeGen.WriteLiteralStructMethod(StructMapping structMapping)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializationReaderCodeGen.WriteStructMethod(StructMapping structMapping)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializationReaderCodeGen.GenerateMethod(TypeMapping mapping)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializationCodeGen.GenerateReferencedMethods()
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializationReaderCodeGen.GenerateEnd(String[] methods, XmlMapping[] xmlMappings, Type[] types)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Hashtable assemblies, String outputDir, IEnumerable1 referenceDirectories, String intermediateDir, Boolean loadAssembly) C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializer.GenerateSerializer(Type[] types, XmlMapping[] mappings, CompilerParameters parameters, String outputDir, IEnumerable1 referenceDirectories, String intermediateDir, Boolean loadAssembly)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at System.Xml.Serialization.XmlSerializer.GenerateSerializer(Type[] types, String outputDir, IEnumerable1 referenceDirectories, String intermediateDir, List1 wcfSerializers, Boolean loadAssembly)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : at SerializationAssemblyGenerator.Program.Main(String[] args)
C:\Program Files (x86)\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : Internal compiler error: One or more errors occurred.

Here's some facts about my build to aid any support;

  • Only occurs during .NET toolchain enabled builds.
  • Have created a sample project and imported all my dependencies and can't reproduce the error externally.
  • Have tried changing Xamarin Forms versions between 166-pre4 right up to 180-pre1 with no solution.

Thanks for your time.

Sign In or Register to comment.