Skip to content

Instantly share code, notes, and snippets.

@dotMorten
Created September 22, 2015 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotMorten/8f2e5f55a43b2ff3beef to your computer and use it in GitHub Desktop.
Save dotMorten/8f2e5f55a43b2ff3beef to your computer and use it in GitHub Desktop.
Has anyone ever seen errors like this?
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.CompareInfo'
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.CultureData'
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'System.Globalization.TextInfo'
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'MyProjectNameSpace.MyTypeHere'
4>c:\source\Tests\UnitTests.Universal\sg.exe : warning : SG0002 : Cannot generate serialization code for type 'MyProjectNameSpace.MyTypeHere'
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : System.ArgumentNullException: Value cannot be null.
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : Parameter name: key
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.CciProjectors.ToIMethodReference(MethodBase methodBase, SagCodeGeneratorHost host)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.CodeGenerator.New(ConstructorInfo constructorInfo)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.XmlFormatReaderGenerator.CriticalHelper.ReadCollection(CollectionDataContract collectionContract)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.XmlFormatReaderGenerator.CriticalHelper.GenerateCollectionReader(CollectionDataContract collectionContract)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.XmlFormatReaderGenerator.GenerateCollectionReader(CollectionDataContract collectionContract)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at System.Runtime.Serialization.CollectionDataContract.get_XmlFormatReaderDelegate()
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at SerializationAssemblyGenerator.Program.TraverseTypes(GeneratorSettings settings, Dictionary`2& dataContracts, Dictionary`2& jsonDataContracts, List`1& xmlSerializerTypes)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : at SerializationAssemblyGenerator.Program.Main(String[] args)
4>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : Internal compiler error: One or more errors occurred.
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
@nattress
Copy link

Hey there,

I work on the .NET Native team and would take a closer look. Can you mail this stack to us at dotnetnative@microsoft.com and we'll work to get a repro from you to analyze. Thanks!

Simon

@dotMorten
Copy link
Author

@nattress Thanks Simon. Just sent you an email.

@makpac
Copy link

makpac commented Sep 30, 2015

Hi,

Is there anything new about this one. I have a very similar issue and I don't have an idea.

Thanks.

@tfierens
Copy link

I'm getting the same issue here while building a UWP project with MSBuild. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment