Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous class obfuscation removes all the properties #154

Closed
darkeagle76 opened this issue Aug 21, 2018 · 3 comments
Closed

Anonymous class obfuscation removes all the properties #154

darkeagle76 opened this issue Aug 21, 2018 · 3 comments

Comments

@darkeagle76
Copy link

Hello
I used the obfuscator with "HidePrivateApi" set to true.
In my code there are some anonymous classes that were obfuscated but the obfuscator removes all the property of the internal call and this create an exception in the compiled program.
There is a way to exclude anonymous classes from being obfuscated?
Thanks
D

@lextm
Copy link
Member

lextm commented Aug 21, 2018

Duplicate to #130

@lextm lextm closed this as completed Aug 21, 2018
@darkeagle76
Copy link
Author

darkeagle76 commented Aug 21, 2018

Hello,
Thanks for pointing me to the issue #130 but is seems that does not works for me.
From the issue #130 I navigated to the related ZZZLib issue 78 where I found that to skip anonymous types I need to add this configuration line to my config:

<SkipType name="*AnonymousType*" skipProperties="true" skipMethods="true" skipFields="true" skipEvents="true" skipStringHiding="true" />

But this does not works with the latest version of obfuscar. The anonymous types are still obfuscated and the internal properties were dropped.

So please could you tell me how I can instruct the obfuscator to skip all the anonymous types of an assembly?

Thanks
G

@afruzan
Copy link

afruzan commented Nov 13, 2021

this worked for me:

<SkipType name="*AnonymousType*" skipProperties="true" skipMethods="true" skipFields="true" skipEvents="true" skipStringHiding="true" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants