Get the lastest binaries version from here :
https://github.com/mkaring/ConfuserEx/releases
For use in command line (Confuser.CLI.exe) :
Confuser.CLI.exe myProjectFile.crproj
Project file example :
<?xml version="1.0" encoding="utf-8"?>
<project baseDir="c:\" outputDir="c:\Confused" xmlns="http://confuser.codeplex.com">
<rule preset="none" pattern="true">
<protection id="anti debug" />
<protection id="anti dump" />
<protection id="anti ildasm" />
<protection id="anti tamper" />
<protection id="constants" />
<protection id="ctrl flow" />
<protection id="invalid metadata" />
<protection id="ref proxy" />
<protection id="rename" />
<protection id="resources" />
</rule>
<module path="ICSharpCode.AvalonEdit.dll" />
<module path="ICSharpCode.Decompiler.dll" />
<module path="ICSharpCode.NRefactory.dll" />
<module path="ICSharpCode.NRefactory.CSharp.dll" />
<module path="ICSharpCode.NRefactory.VB.dll" />
<module path="ICSharpCode.TreeView.dll" />
<module path="ILSpy.BamlDecompiler.Plugin.dll" />
<module path="ILSpy.exe" />
<module path="ILSpy.SharpDevelop.LGPL.dll" />
<module path="Mono.Cecil.dll" />
<module path="Mono.Cecil.Pdb.dll" />
</project>
Config file format : https://github.com/yck1509/ConfuserEx/blob/master/docs/ProjectFormat.md
For use with the GUI (ConfuserEx.exe) :
- In the Project tab
- Choose a base directory
- Click on the + button to add DLLs (modules)
- In the Settings tab
- Click on < Global settings >
- Click on the + button. A new rule is added. When the pattern matches, the rule is executed, so “True” mean the rule will always be executed.
- Click on Edit button.
- Choose the preset “Maximum” then close
- In the Protect tab
- Click Protect!