yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.63k forks source link

Visual Studio 2017 crashes after obfuscating DLL #653

Open skjolddesign opened 6 years ago

skjolddesign commented 6 years ago

Im trying to obfuscate a DLL project to be used in my other projects. But Visual Studio crashes when referencing the obfuscated DLL. This happens when i go higher than Preset Minimum on DLL obfuscation. Tried to add Protection: "Remove-> anti debug", but still same problem.
Seen many people have this problem, but no real solution to it. I need at least Normal protection, to obfuscate strings and clear code. For time being Im using original source DLL while developing, and copy the obfuscated DLL to the Release folder when im done. This is dangerous if I forget to copy the obfuscated DLL to Release. Please help.

log: [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 'SkjoldDisplayTools.dll'... [INFO] Initializing... [DEBUG] Building pipeline... [INFO] Resolving dependencies... [DEBUG] Checking Strong Name... [DEBUG] Creating global .cctors... [DEBUG] Watermarking... [DEBUG] Executing 'Name analysis' phase... [DEBUG] Building VTables & identifier list... [DEBUG] Analyzing... [WARN] Could not find resource type 'SkjoldDisplayTools.Resources'. [INFO] Processing module 'SkjoldDisplayTools.dll'... [DEBUG] Executing 'Invalid metadata addition' phase... [DEBUG] Executing 'Renaming' phase... [DEBUG] Renaming... [DEBUG] Executing 'Anti-debug injection' phase... [DEBUG] Executing 'Anti-dump injection' phase... [DEBUG] Executing 'Anti-ILDasm marking' phase... [DEBUG] Executing 'Encoding reference proxies' phase... [DEBUG] Executing 'Constant encryption helpers injection' phase... [DEBUG] Executing 'Resource encryption helpers injection' phase... [DEBUG] Executing 'Constants encoding' phase... [DEBUG] Executing 'Anti-tamper helpers injection' phase... [DEBUG] Executing 'Control flow mangling' phase... [DEBUG] Executing 'Post-renaming' phase... [DEBUG] Executing 'Anti-tamper metadata preparation' phase... [DEBUG] Executing 'Packer info extraction' phase... [INFO] Writing module 'SkjoldDisplayTools.dll'... [DEBUG] Encrypting resources... [INFO] Finalizing... [DEBUG] Saving to 'C:\My Libraries\Documents\SDClass\bin\Release\Confused\SkjoldDisplayTools.dll'... [DEBUG] Executing 'Export symbol map' phase... [INFO] Done. Finished at 20:59, 0:00 elapsed.

System: Windows 10 Visual Studio Community 2017 v15.3.4 ConfuserEx v1.0.0

Fafa87 commented 6 years ago

+1

sgkoishi commented 6 years ago

Try use Post Build Event to copy files as you build if you can not find what protection breaks. https://msdn.microsoft.com/en-us/library/ke5z92ks.aspx

damozaz commented 6 years ago

Same problem for me

skjolddesign commented 6 years ago

I went for Eazfuscator.NET