any way to obfuscate .net 3.5 with xaml?

88 views
Skip to first unread message

kirk

unread,
Feb 12, 2009, 6:32:17 PM2/12/09
to obfuscar
after obfuscating an assembly which uses xaml, i get a crash when i
invoke the program. i think it relates to the xaml/baml files staying
intact while the rest of the code gets obfuscated.

i've tried excluding _all_ of the namespaces just as an excercise but
it still doesn't work

any idea?

Ryan Williams

unread,
Feb 12, 2009, 10:35:48 PM2/12/09
to obfu...@googlegroups.com
It shouldn't have a problem with the 3.5 framework. I haven't had an
occasion to try it with xaml, but I can easily imagine it
failing...it's going to be doing reflection all over the place, and
obfuscar scrambles the metadata needed to match the xaml to the
underlying code. Without also obfuscating the references in the xaml
to match the code, or without skipping obfuscation of the parts of the
code referenced by the xaml, it's pretty unlikely to work.

kirk

unread,
Feb 13, 2009, 9:19:31 AM2/13/09
to obfuscar
Thanks, eventually what i did is:
move XAML forms/control into a 'xaml' namespace and exclude
and exclude this
<SkipNamespace name="XamlGeneratedNamespace" />


one more question, im trying to streamline this into a buildprocess in
postbuild:
im always getting this:
Unable to read specified project file: C:\Work\Workspaces\vs2k5\..
\config.xml

all the paths exists, if i take the commadn and run in commandpromt,
same result, any ideas?

Ryan Williams

unread,
Feb 16, 2009, 9:46:54 PM2/16/09
to obfu...@googlegroups.com
It might be the ".." in the path...does it work if you put the absolute path?
Reply all
Reply to author
Forward
0 new messages