How can we help you today? How can we help you today?

Is there a good solution for compiler-generated code being marked Serializable?

C# in VS2015 seems to throw a pointless Serializable attribute onto some auto-generated code, causing the parent class not to be fully obfuscated. Is there a better solution than tweaking the code until the attribute stops appearing?

A user on stackoverflow ended up writing a custom tool to pre-process the assembly and strip the attribute. I'd rather not do that.

It would be nice if there was an option to force obfuscation for a class, but ideally SmartAssembly should have an option to ignore Serializable when CompilerGenerated is also present.
Michael
0

Comments

1 comment

  • Russell D
    Yeah - we definitely need to handle this better. I've created an enhancement request for our backlog.
    Russell D
    0

Add comment

Please sign in to leave a comment.