4

According to the documentation, it is possible to skip the entire namespace:

<Module file="$(InPath)\AssemblyX.exe">
    <!-- skip a namespace -->
    <SkipNamespace name="Company.PublicBits" />

All the subtypes (classes) under Company.PublicBits will also be skipped. But I am looking for a way to only not obfuscate namespace itself, but still obfuscate all its subtypes. Is it possible to be done by configuration?

Thomas
  • 56
  • 3
  • Have you read the `Obfuscar` documentation? This would be the first action I would do *before* asking a question. Does their docs state that it is possible? If not then there are two options: their docs are awful or you just can't do it. I'd say more likely it would then be option 2. If not, you should consider not using it anymore because if there are no good docs the software is likely to be as good as the docs are. – cramopy Oct 16 '17 at 17:24
  • I did -- http://docs.obfuscar.com/en/latest/getting-started/configuration.htm And on documentation there is no information about it. Looks like an extra script to manually find all namespace and create rules for each individually. – Thomas Oct 17 '17 at 18:46
  • okay :) then you'll get my upvote in order to find a solution for that anyway -- as stated "no good docs, (probably) no good to use software" – cramopy Oct 17 '17 at 19:36
  • 2
    Currently there is no feature like you asked for. Pull requests are welcome. – Lex Li Oct 20 '17 at 14:10
  • What do you mean by 'only not obfuscate namespace itself'? Can you explain it little bit more? – titol Aug 20 '18 at 06:13
  • Feature still missing? That could be helpful if already exists. I'm facing a problem while creating a CorelDraw Addon... I want to obfuscate the methods but keep the namespace the same, if namespace changes, Addon is not loaded. – fellyp.santos Jul 27 '21 at 17:20
  • Update: Solved my problem simplely changing ```class MyClass``` to ```public class MyClass``` this way the obfuscator isn't messing up my code and preserving the namespace. – fellyp.santos Jul 27 '21 at 17:32

0 Answers0