2011-08-23 94 views
1

我是Dotfuscator的新手。 我想用后生成保护我的.exe文件通过视觉studio2008 Dotfuscator的option.But我无法做到这一点 好吧,我使用后生成选项的命令一样 “Dotfuscator的C:\用户\管理员\桌面\ Hello \ Hello \ bin \ x86 \ Debug \ Hello.exe“ 但是VS2008显示错误”The command“dotfuscator C:\ Users \ Administrator \ Desktop \ Hello \ Hello \ bin \ x86 \ Debug \ Hello.exe” 退出代码9009“。 我该怎么做。通过DotFuscator在vs2008中通过发布版本选项保护exe文件

回答

0

Tr的创建在同一目录中的myDotfuscatorConfig.xml作为源根目录(C:\用户\管理员\桌面\你好\你好),看起来像这样:

<?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并传递配置文件的名称作为参数。如果这可以从命令行正常工作,那么将其作为构建后行为添加应该是微不足道的。

+0

我也这样做,但它不工作。 – vikky

+0

发布有关在命令行中键入的内容的更多信息,以及输出/错误消息的详细信息。例如,我注意到你在问题中拼错了“dotfruscator”。 –

+0

其实我使用的命令是“C:\ Program Files \ Microsoft Visual Studio 9.0 \ Application \ PreEmptive Solutions \ Dotfuscator Community Edition \ dotfuscator.exe/in:C:\ Users \ Administrator \ Desktop \ Hello \ Hello \ bin \ x86 \ Debug \ Hello.exe“ – vikky

0

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