Further info: PEVerify says this: [MD]: Error: TypeDef is marked Nested but has no enclosing type. [token:0x02000003]
I couldn’t find any way in Mono.Cecil to remove that Nested flag. The IsNested property is read-only, and only checks whether DeclaringType is null (which I’ve already set to null). -- -- mono-cecil
