如何使用Obfuscar将代码混淆为方法,而不能混淆名称空间,类或方法名

问题描述

我正在尝试根据documentation配置Obfuscar,但在我需要的情况下没有成功。我需要将参数名称和代码混淆到方法中(如下图红色方框所示),方法名称,类名称和名称空间名称除外,因为主要的asp.net核心项目添加了此依赖关系,从而实例化了该名称空间中的类并运行该方法

enter image description here

这是配置文件。

<Obfuscator>
  <AssemblySearchPath path="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor\2.2.0\lib\netstandard2.0" />
  <Var name="OutPath" value="obfuscar" />
  <Var name="HideStrings" value="true" />
  <Var name="UseKoreanNames" value="false" />
  <Var name="UseUnicodeNames" value="true" />
  <Var name="ReuseNames" value="true" />
  <Var name="RenameFields" value="true" />
  <Var name="RenameProperties" value="true" />
  <Var name="RenameEvents" value="true" />
  <Var name="OptimizeMethods" value="true" />
  <Var name="SuppressIldasm" value="true" />
  <Var name="KeepPublicApi" value="false" />
  <Var name="HidePrivateApi" value="true" />
  <Module file="SicotX.Startup.dll">
    <SkipType name="SicotX.Infrastructure.ServiceStartup.ServiceStartup" skipFields="false" skipProperties="false" />
  </Module>
</Obfuscator>

感谢您的帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...