Need Console Ver XML Config Sample

Apr 25, 2011 at 5:15 AM
Edited Apr 25, 2011 at 5:15 AM

Hi !

Confuser is a great project and I really like it,but I got some problems while using console version.

I wrote a config file something like this:



<assembly path="ABCTools.exe">     
<settings exclude="false" applytomembers="true">       
<confusion id="const encrypt" />       
<confusion id="anti ildasm" />       
<confusion id="rename" />       
<confusion id="ctrl flow" />       
<confusion id="anti debug" />       
<confusion id="res encrypt" />       
<confusion id="anti dump" />       
<confusion id="invalid md" />       
<confusion id="reduce md" />     


and then type

Confuser.Console.exe -config config.xml -output

in the command line,then I got:

***************ERROR!!值不在预期的范围内。  (something like Value does not fall within the expected range)

在 Mono.Cecil.ModuleDefinition.GetFileStream(String fileName, FileMode mode,FileAccess access, FileShare share)  

在 Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)  

在 Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName)  

在 Confuser.Core.Marker.GetAssemblies(String src, Preset preset, Confuser cr, EventHandler`1 err)  

在 Confuser.Console.XmlMarker.GetAssemblies(String src, Preset preset, Confuser cr, EventHandler`1 err)  

在 Confuser.Core.Confuser.Initialize(StrongNameKeyPair& sn)  

在 Confuser.Core.Confuser.Confuse(ConfuserParameter param)



so can anyone help me on this...thx!


ps.When I wrote Confuser.Console.exe -assembly ABCTools.exe -output

in Command line it works fine.





Apr 25, 2011 at 2:25 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.