【问题标题】:protect exe through dotfuscator in vs2008 by post build option通过构建后选项在 vs2008 中通过 dotfuscator 保护 exe
【发布时间】:2011-08-23 07:25:19
【问题描述】:

我是 Dotfuscator 的新手。 我想使用后期构建选项通过 Visual Studio2008 中的 dotfuscator 保护我的 .exe 文件。但我无法做到这一点 好的,我在后期构建选项中使用命令,例如 “dotfuscator C:\Users\Administrator\Desktop\Hello\Hello\bin\x86\Debug\Hello.exe” 但VS2008显示错误“命令“dotfuscator C:\Users\Administrator\Desktop\Hello\Hello\bin\x86\Debug\Hello.exe” 以代码 9009 退出”。 我该怎么办。

【问题讨论】:

    标签: c# vb.net post-build-event dotfuscator


    【解决方案1】:

    Tr 在与源根目录​​ (C:\Users\Administrator\Desktop\Hello\Hello) 相同的目录中创建一个 myDotfuscatorConfig.xml,如下所示:

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <!DOCTYPE dotfuscator SYSTEM "http://www.preemptive.com/dotfuscator/dtd/dotfuscator_v2.3.dtd">
    <dotfuscator version="2.3">
       <input>
          <loadpaths />
          <asmlist>
             <inputassembly refid="6175A05D-933C-44BB-B183-AAA5F32C49D1">
                <file dir="${configdir}\bin\x86\Debug" name="Hello.exe" />
             </inputassembly>
          </asmlist>
       </input>
    
       <output>
          <file dir="${configdir}\bin\x86\obfuscated\Debug" />
       </output>         
    </dotfuscator>
    

    然后,执行 dotfuscator.exe 并将配置文件的名称作为参数传递。如果从命令行可以正常工作,则将其添加为构建后操作应该很简单。

    【讨论】:

    • 发布有关您在命令行中键入的内容以及输出/错误消息的确切内容的更多信息。例如,我注意到您在问题中拼错了几次“dotfruscator”。
    • 其实我正在使用这个命令“C:\Program Files\Microsoft Visual Studio 9.0\Application\PreEmptive Solutions\Dotfuscator Community Edition\dotfuscator.exe /in: C:\Users\Administrator\Desktop\你好\Hello\bin\x86\Debug\Hello.exe"
    • 此命令在 vs08 命令提示符下执行并打开 dotfuscator.exe GUI 并将输入作为 Hello.exe。但我不知道如何从命令构建它并将其保存在适当的位置。
    【解决方案2】:

    Anders 是正确的,创建一个配置文件并通过命令行将其发送到 Dotfuscator 是要走的路。但是,您需要在 http://www.preemptive.com 注册一个帐户并下载包含命令行支持的最新 Dotfuscator CE 补丁。 Visual Studio 附带的版本不支持全自动命令行模式。安装更新版本后,您应该能够毫无问题地运行“dotfuscator.exe”。

    【讨论】:

      猜你喜欢
      • 2010-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多