加密混淆器显示异常,无法解析 mscorlib

Crypto Obfuscator showing exception, Could not resolve mscorlib

在混淆我的 WPF C# 应用程序时,它显示异常说

Error occurred while obfuscation: System.IO.FileNotFoundException - System.IO.FileNotFoundException: Could not resolve: mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e. Specify the path where this assembly resides using 'Search Directories' in the Crypto Obfuscator's Project Properties Dialog (Ctrl+P).

我还尝试在搜索目录项目属性对话框中添加 mscorlib.dll 文件的路径。但它仍然显示相同的异常。 任何帮助将不胜感激。

当您在搜索目录项目属性对话框中添加目录时,不要select:

Only allow same or higher versions when resolving referenced assemblies

在搜索目录项目属性对话框中添加目录时,指定项目所在的搜索目录。 因为您的 DLL 可能包含其他 DLL 的引用。我想它会解决你的问题