使用 Eazfuscator 从混淆中排除名称空间

问题描述 投票:0回答:1

我的项目中有 DotNetBrowser 许可证,它绑定到我的命名空间。然而,Eazfuscator 正在混淆命名空间。

我尝试通过向 AssemblyInfo.cs 添加以下行(一次一行)来防止这种情况:

[assembly: Obfuscation(Feature = "namespace(MyNamespace)", Exclude = true)]
[assembly: Obfuscation(Exclude = true, Feature = "namespace('MyNamespace'):-rename")]

我也尝试过使用 Exclude = false,但我的命名空间仍然被混淆。 谁能告诉我如何防止我的命名空间被混淆?

c# obfuscation eazfuscator
1个回答
0
投票

根据eazfuscator的文档,它删除了重命名类型的命名空间,但是您可以通过

添加回来的命名空间
[assembly: Obfuscation(Feature = "type renaming pattern 'MyNamespace'.*", Exclude = false)]

[Obfuscation(Feature = "type renaming pattern 'MyNamespace'.*", Exclude = false)]
class MyClass
© www.soinside.com 2019 - 2024. All rights reserved.