Adding the following sectio to Dotfuscator's config.xml
fixed the problem:
<renaming>
<excludelist>
<type name=".*" regex="true" excludetype="true">
<customattribute name=".*Generated.*" regex="true"/>
</type>
</excludelist>
</renaming>