【问题标题】:How to specify Dotfuscator's "inclusion/exclusion lists" on the command line?如何在命令行中指定 Dotfuscator 的“包含/排除列表”?
【发布时间】:2014-03-04 18:27:10
【问题描述】:

我在 Post-build 事件中调用 Dotfuscator 并希望它在我的程序集中加密字符串文字。不幸的是,它只能通过指定一个所谓的字符串加密包含列表来完成。有没有办法通过命令行界面提供它?我可以在 Dotfuscator 的配置文件中执行此操作,但这需要对路径进行硬编码,我希望避免这种情况。 Dotfuscator 可执行文件的位置在 PATH 环境变量中。

我会使用 MSBuildMSBuildThisFileDirectory 属性来定位相对于该路径的配置文件,但 .NET 3.5 不支持它...

【问题讨论】:

    标签: msbuild .net-3.5 dotfuscator


    【解决方案1】:

    将以下部分添加到 Dotfuscatorconfig.xml 修复了问题:

    <renaming>
      <excludelist>
        <type name=".*" regex="true" excludetype="true">
          <customattribute name=".*Generated.*" regex="true"/>
        </type>
      </excludelist>
    </renaming>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-19
      • 2012-10-10
      • 2019-01-06
      • 2022-12-18
      • 2021-12-17
      • 1970-01-01
      • 2013-01-03
      • 2018-12-31
      相关资源
      最近更新 更多