通过提供这样的构建后事件命令来混淆 WPF 项目:
if "$(ConfigurationName)" == "Release" ($(ProjectDir)ConfuserEx\Confuser.CLI.exe $(ProjectDir)Confuser.crproj)
在成功构建和混淆创建后,如果我混淆 dll,则 Exe 会崩溃,然后工作正常,但如果我混淆 Exe,则会崩溃
Confuser.crproj
<project outputDir="..\Release" baseDir="obj\Release" xmlns="http://confuser.codeplex.com">
<module path="Sample.exe" >
<rule pattern="true" preset="aggressive" inherit="false">
<protection id="anti ildasm" />
<protection id="anti tamper" />
<protection id="anti dump" />
</rule>
</module>
<probePath>..\..\obj\Release</probePath>
<probePath>..\..\bin\Release</probePath>
</project>