我的项目使用另一个 lib 项目作为参考。
尝试在“发布”模式下运行项目时出现此错误,在“调试”模式下它工作正常。
它说它无法加载 lib 项目,因为:
"An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'UserManagementProviders,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
An attempt was made to load a program with an incorrect format."