yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

How to disable XAML/BAML renaming #122

Open nocode444 opened 9 years ago

nocode444 commented 9 years ago

Hello, I am noticing that some ComboBoxes are not displaying items after obfuscation of WPF app (Normal mode and after removing Resource Obfuscation). Is there any way to disable BAML renaming?

gabrielius commented 9 years ago

I am experiencing this problem too. Even when for the particular file I REMOVE all the protections (when global setting is set tu maximum) still, getting the same problem as you.

nocode444 commented 9 years ago

gabrielius,

After some tweaking around, this works for me:

This is quite satisfactory for my project. So, I haven't tried other combinations. Let me know if this works for you.

gabrielius commented 9 years ago

Yes, this worked. Yesterday I started just adding one protection after another, and found out that it is rename protection that messes everything up. Basically you can add every protection there is except rename and Anti ILDasm (because it is really a very weak protection as they state in Wiki).

nocode444 commented 9 years ago

Resource Protection and Renaming did not work for me so I removed that as well. So currently, none of the XAML is obfuscated, but most all the other code is obfuscated quite nicely.

yck1509 commented 9 years ago

In fact, you should not disable BAML renaming if you intended to use Name Protection since BAML renaming is required to keep the output working. If your application does not work after protection, please post some details like the related XAML markups, the crash log, etc. so that I can look into the issue.

lasseo commented 9 years ago

How do I use WPF control "Frame" together with ConfuserEx? You set the source of the object with a string containing the url to the source xaml file. The xaml file has been renamed and therefore not found.

Ruffio commented 8 years ago

@wizkidd do you have a sample that the dev. can have a look at or is it not relevant any more and can be closed?