Hi, When I try to build my project with 3.5.06b. I got an error in console: Code (csharp): Failed to convert type <PrivateImplementationDetails>{341D0C8C-7AFA-47FF-AA0E-4A8E79CD2F55}: System.NotSupportedException: Default constructor missing from <PrivateImplementationDetails>{341D0C8C-7AFA-47FF-AA0E-4A8E79CD2F55} at cil2as.Extensions.TypeDefinitionExtensions.MandatoryDefaultConstructor (Mono.Cecil.TypeDefinition typeDefinition) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.Transforms.EraseConstructors.AddDefaultConstructorTo (ICSharpCode.NRefactory.CSharp.TypeDeclaration typeDeclaration) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.Transforms.EraseConstructors.VisitTypeDeclaration (ICSharpCode.NRefactory.CSharp.TypeDeclaration typeDeclaration, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.TypeDeclaration.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitChildren (ICSharpCode.NRefactory.CSharp.AstNode node, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitNamespaceDeclaration (ICSharpCode.NRefactory.CSharp.NamespaceDeclaration namespaceDeclaration, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.NamespaceDeclaration.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitChildren (ICSharpCode.NRefactory.CSharp.AstNode node, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitCompilationUnit (ICSharpCode.NRefactory.CSharp.CompilationUnit unit, System.Object data) [0x00000] in <filename unknown>:0 at ICSharpCode.NRefactory.CSharp.CompilationUnit.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.Transforms.DepthFirstAstTransform.Run (ICSharpCode.NRefactory.CSharp.AstNode node) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.ActionScriptAstBuilder.ApplyTransforms (ICSharpCode.NRefactory.CSharp.AstNode node, IEnumerable`1 pipeline) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.ActionScriptAstBuilder.ApplyTransformationPipelineTo (ICSharpCode.NRefactory.CSharp.AstNode node) [0x00000] in <filename unknown>:0 at cil2as.Decompiler.ActionScriptAstBuilder.AstFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 at cil2as.ActionScriptGenerator.AstFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 at cil2as.ActionScriptGenerator.Decompile (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 at cil2as.ActionScriptGenerator.GenerateActionScriptCodeFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 at cil2as.AssemblyConverter.ConvertTypesToActionScript () [0x00000] in <filename unknown>:0 Does anybody know what's up with this error?
Same version of Unity, same problem, different hex string (which I'm hoping may help direct me in some way to the offending type) ... Code (csharp): Failed to convert type <PrivateImplementationDetails>{[B]7FFFFEE5-CA43-4BD8-8322-3E3B4414ADB0[/B]}: System.NotSupportedException: Default constructor missing from <PrivateImplementationDetails>{7FFFFEE5-CA43-4BD8-8322-3E3B4414ADB0} at cil2as.Extensions.TypeDefinitionExtensions.MandatoryDefaultConstructor (Mono.Cecil.TypeDefinition typeDefinition) [0x00000] in <filename unknown>:0
Found some info about this here: http://forum.unity3d.com/threads/116501-Flash-Export-Type-lt-PrivateImplementationDetails-gt-is-defined-in-multiple-scripts This error can be caused by switch case statements, see explanation here. Do a search for switch in your code base. Try isolating it with #if UNITY_FLASH #endif tags to see if it is the problem area. Then replacing it with if else if statements.