How to skip resources?

113 views
Skip to first unread message

obiwanjacobi

unread,
May 22, 2007, 5:36:34 AM5/22/07
to obfuscar
I see that resources are also obfuscated (not the IDs) and the calls
to the ResourceManager to load resource fail.

How can I skip resources?

Thanx
--Marc

Ryan Williams

unread,
May 22, 2007, 9:06:50 AM5/22/07
to obfu...@googlegroups.com
It doesn't rename all resources, it only renames resources whose names
match types being renamed...The contents of the resource remain
unaltered. For example, if you have a class 'YourNamespace.Class1',
with an associated resource 'YourNamespace.Class1.resources', if
Obfuscar renames the class 'A.A', it will rename the resource
'A.A.resources'...To skip the resource, skip the corresponding type.

Perhaps I'm not understanding the problem...can you provide a
simplified example that demonstrates it?

obiwanjacobi

unread,
May 22, 2007, 10:54:01 AM5/22/07
to obfuscar
Yes that was it. It was resource that belonged to a class. For the
Properties.Resources class this doesn't work because the class type is
hard-coded as text. So al I had to do was to SkipType my
Properties.Resources class and it worked.

Thanx.

Reply all
Reply to author
Forward
0 new messages