如果使用中出现错误,例如:
[INFO] ConfuserEx v1.0.0 Copyright (C) Ki 2014
[INFO] Running on Microsoft Windows NT 6.2.9200.0, .NET Framework v4.0.30319.42000, 64 bits
[DEBUG] Discovering plugins...
[INFO] Discovered 10 protections, 1 packers.
[DEBUG] Resolving component dependency...
[INFO] Loading input modules...
[INFO] Loading 'mjr.dll'...
[INFO] Initializing...
[DEBUG] Building pipeline...
[INFO] Resolving dependencies...
[ERROR] Failed to resolve dependency of 'ClassLibrary1.dll'.
Exception: dnlib.DotNet.AssemblyResolveException: Could not resolve assembly: Acdbmgd, Version=20.1.0.0, Culture=neutral, PublicKeyToken=null
在 dnlib.DotNet.Extensions.ResolveThrow(IAssemblyResolver self, IAssembly assembly, ModuleDef sourceModule) 位置 E:\Source\Public\Confuser2\dnlib\src\DotNet\IAssemblyResolver.cs:行号 113
在 Confuser.Core.ConfuserEngine.Inspection(ConfuserContext context) 位置 e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngine.cs:行号 264
Failed at 20:42, 0:00 elapsed.
解决方法:
说明没有把引用的外部依赖dll跟需要加壳的dll放在一个文件夹
例如:在cad开发中经常会把引用的四个cad的dll漏掉,正确做法是把四个cad的dll与自己做的dll放在一起。