2011-08-23 90 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」。