“此程序集是由比当前加载的运行时更新的运行时构建的,无法加载" [英] "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded"

查看:15
本文介绍了“此程序集是由比当前加载的运行时更新的运行时构建的,无法加载"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息:此程序集是由比当前加载的运行时更新的运行时构建的,无法加载."

I'm getting the error: "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."

我有一个 .NET 4.0 dll 项目,它被一个 .NET 2.0 项目调用.有没有办法调和框架上的差异?

I have a .NET 4.0 dll project that is being called by a .NET 2.0 project. Is there a way to reconcile the difference in framework?

推荐答案

我有一个 .NET 4.0 dll 项目,它被一个 .NET 2.0 项目调用.有没有办法调和框架上的差异?

I have a .NET 4.0 dll project that is being called by a .NET 2.0 project. Is there a way to reconcile the difference in framework?

不是那样,不是..NET 4 CLR 可以加载 .NET 2 程序集(通常 - 混合模式程序集有一些例外,IIRC),但反之则不然.

Not that way round, no. The .NET 4 CLR can load .NET 2 assemblies (usually - there are a few exceptions for mixed-mode assemblies, IIRC), but not vice versa.

您要么必须将 .NET 2 项目升级到 .NET 4,要么将 .NET 4 项目降级到 .NET 3.5(或更早版本).

You'll either have to upgrade the .NET 2 project to .NET 4, or downgrade the .NET 4 project to .NET 3.5 (or earlier).

这篇关于“此程序集是由比当前加载的运行时更新的运行时构建的,无法加载"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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