-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ApplyToMembers not work in ObfuscationAttribute(Exclude = true, ApplyToMembers = true)] #75
Comments
The workaround is to add the attribute to each property/method of the class For example |
Yes, but this is a proper hassle. Especially if the class contains a lot of members. I'll try to fix this for the 1.x and the 2.x releases. |
@ahmedosama007, unfortunately, it does not work for properties, only for fields. I guess this is due to properties contain autogenerated getter and setter. |
The apply to member attribute is not properly handled. The altered settings are now transfered to the member elements.
The apply to members attribute is only considered for types. This is done to follow the recommended behaviour by Microsoft. If the attribute is applied to anything but a type, the parameter is considered to be set to false without condition.
@KvanTTT: That did not work at all properly. A type with this specific attribute should forward it's altered configuration to all the members. @ahmedosama007: I think I fixed the issue and the version containing the fix can be downloaded here. I would appreciate some feedback if it works for you now. |
@mkaring Thanks, I confirm that the issue was fixed, ApplyToMembers = true is now can exclude all class members from certain protections specified by attribute parameter Feature Thanks for fixing this. please accept my coffee and have a nice day |
@mkaring in your build renaming of public members and types are disabled by default. It differs from previous behavior. Is this made intentionally? |
@KvanTTT Not exactly sure what you are talking about. |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ApplyToMembers does not work in
ObfuscationAttribute(Exclude = true, ApplyToMembers = true)]
, it should exclude all class members from certain protection modulesThe text was updated successfully, but these errors were encountered: