关于BadImageException 相关的解决方法,System.BadImageFormatException:“未能加载文件或程序集,或者 System.IO.FileLoadExceptio
详情请查阅以下地址
https://www.cnblogs.com/Jacklovely/p/5833615.html
我只是增加了 相关搜索的标题。。
主要的解决方法 步骤:
1, 在解决方案 目录下 找到 App.config
然后在
把 startup 标签 里 增加 useLegacyV2RuntimeActivationPolicy="true" 属性。 即可解决无法生成,或 生成失败的问题。
如下列代码所示。
详情请查阅 MSDN 相关文献
- Startup Settings Schema
- Configuration File Schema
- How to: Configure an app to support .NET Framework 4 or later versions
- Side-by-Side Execution for COM Interop
- In-Process Side-by-Side Execution