This documentation is archived and is not being maintained.

Declarative Obfuscation By Assembly 

Visual Studio 2005

For a complete description of Dotfuscator’s support for Declarative Obfuscation, see Declarative Obfuscation via Custom Attributes.

Enabling or Disabling Declarative Obfuscation

Dotfuscator allows you to switch Declarative Obfuscation on or off for specific input assemblies. If not enabled, Dotfuscator will ignore obfuscation related custom attributes.

In Dotfuscator Community Edition, the “honorOAs” option applies to all input assemblies. If any one input assembly is marked with “honorOAs”, then the option is set for all input assemblies.

To enable declarative obfuscation via the configuration file, you add a "honorOAs" option to each <inputassembly> element.

      <inputassembly>
        <option>honoroas</option>
        ...
      </inputassembly>

Stripping Declarative Obfuscation Attributes

To tell Dotfuscator to strip obfuscation attributes via the configuration file, you add a “stripOAs” option to each <inputassembly> element.

In Dotfuscator Community Edition, the “stripOAs” option applies to all input assemblies. If any one input assembly is marked with “stripOAs”, then the option is set for all input assemblies.

      <inputassembly>
        <option>stripoas</option>
        ...
      </inputassembly>
Show: