将.NetFramwork 4.5降级到4.0 [英] Downgrading .NetFramwork 4.5 to 4.0

查看:1500
本文介绍了将.NetFramwork 4.5降级到4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的控制台项目中将.netFramework版本从4.5降级到4.0,它无法加载程序集。



投掷例外:



System.BadImageFormatException:无法加载文件或程序集。



程序集是第三方,可以使用.Net Framework 2.0

I downgraded .netFramework version from 4.5 to 4.0 in my Console project , It's not able to load assembly.

Throwing exception:

System.BadImageFormatException : Could not load file or assembly.

Assembly is third party and do work with .Net Framework 2.0

推荐答案

如果您正在使用Win8.1,请安装.Net Framework 3.5(包括.Net 2.0和3.0)。

4.0是一个4.5的组成部分,所以你不需要降级到4.0。

参见如何在Windows 8.1中为旧程序启用.NET Framework 2.0和3.5 [ ^ ]

干杯

Andi
If you are working on Win8.1, install .Net Framework 3.5 (which includes .Net 2.0 and 3.0).
4.0 is an integral part of 4.5, so you do not need to "downgrade" to 4.0.
See also How to Enable .NET Framework 2.0 and 3.5 in Windows 8.1 for Older Programs[^]
Cheers
Andi


这篇关于将.NetFramwork 4.5降级到4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆