Dotfuscating programs with embedded resources

A

Anton Shepelev

Hello all,

I want to obfuscate a program with an embedded re-
source using Dotfuscator. My problem is that when
the obfuscated program tries to access the resource,
the followng MissingManifestResourceException comes
up:

Could not find any resources appropriate for the
specified culture or the neutral culture. Make
sure "EmbeddedResourceSample.Stories.resources"
was correctly embedded or linked into assembly
"EmbeddedResourceSample" at compile time, or
that all the satellite assemblies required are
loadable and fully signed.

I have tried excluding autogenerated code from ob-
fuscation using Dotfuscator's "exclusion lists", but
to no avail.

Here is a sample program that prints an embedded
file to standard output:

http://s000.tinyupload.com/?file_id=08745532103394134601

It doesn't work after obfuscation.

I shall apprecite any help in making a working ob-
fuscated version and shall upload any binaries (ob-
fuscated or not) if it will help.
 
A

Anton Shepelev

I said:
I want to obfuscate a program with an embedded re-
source using Dotfuscator. My problem is that when
the obfuscated program tries to access the resource,
the followng MissingManifestResourceException comes
up:
[...]

I am not sure what I was doing wrong, but now I have
fixed the problem by adding the following text to Dot-
fuscator's config file:

<renaming>
<option>xmlserialization</option>
<excludelist>
<type name=".*" regex="true" excludetype="true">
<customattribute name=".*Generated.*" regex="true"/>
</type>
</excludelist>
</renaming>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top