Hi JB, I am locating now the mscorlib reference at the assembly that I am loading and I am getting the types from there. Works pretty good, thanks.
Nevertheless I am getting a reference to the mscorlib from the cecil process when I add a field to a class with 'FieldAttributes.NotSerialized', it looks like you are adding the 'System.NonSerializedAttribute' loaded from the wrong mscorlib. Jan -- -- mono-cecil