goupviet / obfuscar

Automatically exported from code.google.com/p/obfuscar
0 stars 0 forks source link

Can not obfuscate control that has binding string #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create new project, add new text box
2.Add DataBindings for this text box
3.Build this project
4.Obfuscate by Obfuscar.
5. I can not run the out put

What is the expected output? What do you see instead?
=> thrown exception

What version of the product are you using? On what operating system?
=> 1.5.2

Original issue reported on code.google.com by giang...@gmail.com on 2 Dec 2009 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
Data binding is done by reflection. The Visual Studio settings designer uses 
the hard
coded string 'txtSettingTest' to specify the property. Obfuscation renames the
property and therefore the binding code cannot find the property at runtime.

You must configure Obfuscar to skip obfuscation for this kind of properties. 
For the
GOTest example you provided the line in the Obfuscar configuration file should 
look
like this:

<SkipProperty type="GOTest.Properties.Settings" name="*" />

or more general

<SkipProperty type="*.Properties.Settings" name="*" />

Original comment by webbi...@gmail.com on 3 Dec 2009 at 4:04