Hello,
Trying to port one of our projects over to Windows8 Phone today, and sadly hitting an issue with the “serialization weaver”. I’m running Unity 4.3.4 on Windows 8.1. All my C# scripts compile clean, but I am getting the following build error. Nothing I’ve tried has improved results (including a re-install of Unity).
Any ideas on this one?
Here’s what I find in the Editor.log file:
Error building Player: Exception: Failed to run serialization weaver with command line "Temp/StagingArea/Data/Managed\Assembly-CSharp.dll" -pdb -verbose -unity-engine=Temp/StagingArea/Data/Managed/UnityEngine.dll "Temp/StagingArea/TempSerializationWeaver".[Temp/StagingArea/Data/Managed\Assembly-CSharp.dll]
Symbols will be read from Temp/StagingArea/Data/Managed/UnityEngine.pdb
...
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Mono.Cecil.MetadataImporter.ImportTypeSpecification(TypeReference type, IGenericContext context)
at Mono.Cecil.MetadataImporter.ImportTypeSpecification(TypeReference type, IGenericContext context)
at Unity.Serialization.Weaver.MethodEmitterBase.ResolveGenericFieldReference(FieldReference fieldRef)
at Unity.Serialization.Weaver.MethodEmitterBase.EmitMethodBody()
at Unity.Serialization.Weaver.SerializationWeaver.AddSerializeMethod()
at Unity.Serialization.Weaver.SerializationWeaver.Weave()
at usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition)
at usw.Weaver.Weave()
at usw.Program.RunProgram(ConversionOptions options)
at usw.Program.Main(String[] args)