I want reduce the assembly dimension with Costura.Fody
, this working well, infact all the dll are merged in one assembly, but I have a problem with ConfuserEx
that I can't solve.
In particular when I open ConfuserEx
, I drag the .exe
on the app, add the rule, and then press Confuse
to obfuscate the .exe
. I get this error:
[DEBUG] Building pipeline... [INFO] Resolving dependencies... [ERROR] Failed to resolve dependency of 'MyApp.exe'. Exception: dnlib.DotNet.AssemblyResolveException: Could not resolve assembly: MahApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null in dnlib.DotNet.Extensions.ResolveThrow(IAssemblyResolver self, IAssembly assembly, ModuleDef sourceModule) in E:\Source\Public\Confuser2\dnlib\src\DotNet\IAssemblyResolver.cs:riga 113 in Confuser.Core.ConfuserEngine.Inspection(ConfuserContext context) in e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngine.cs:riga 264 Failed at 11:15, 0:00 elapsed.
this happen only when I use Costura.Fody
, 'cause now in the bin/debug
folder there are only the "reduced" assemblies by Costura
, I doesn't have the dll that ConfuserEx
are looking for.
How can I manage this situation?
Thanks.