简体   繁体   English

ConfuserEx混淆的DLL在引用时崩溃于VS 2017

[英]ConfuserEx obfuscated DLL crashes VS 2017 when referenced

I've used ConfuserEx to obfuscate the code of my DLL but if I use anything other than the minimum level of obfuscation, the DLL crashes Visual studio 2017 a few seconds after I add a reference to it with a 'bad image' exception. 我已经使用ConfuserEx混淆了我的DLL的代码,但是如果我使用除最低混淆级别之外的任何其他方法,则在添加带有“错误图像”异常的引用后,DLL会在Visual Studio 2017中崩溃。 The same DLL will however work fine in VS 2013. I want to use the maximum level of obfuscation to protect my code so is there a work around for this? 但是,同一个DLL在VS 2013中可以正常工作。我想使用最大程度的混淆来保护我的代码,因此可以解决此问题吗? I have searched on Google but have not found a concrete solution to this problem, although others seem to have experienced it. 我在Google上进行了搜索,但没有找到具体解决该问题的方法,尽管其他人似乎也曾经历过。 Perhaps there is a setting in VS 2017 that will allow me to use the fully obfuscated DLL without crashing? 也许VS 2017中有一个设置,可以让我使用完全模糊的DLL而不会崩溃?

Usually a bad image format exception...I am assuming...means that the .dll might not be compiled for AnyCpu and you are loading it into a project that is compiled differently. 通常是不良的图像格式异常...我假设...是指.dll可能不会为AnyCpu编译,而您正在将其加载到以不同方式编译的项目中。 Example: dll was compiled for X86 but your project is compiling to X64. 示例:dll是为X86编译的,但是您的项目正在编译为X64。 Not sure if that helps. 不确定是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM