为什么不能在.NET 4.0项目中引用一个4.5组装? [英] Why cant a .net 4.0 project reference a 4.5 assembly?

查看:1199
本文介绍了为什么不能在.NET 4.0项目中引用一个4.5组装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个项目针对.NET 4.0,现在我需要引用它始建针对.NET 4.5第三方DLL。看来,视觉工作室不接受?为什么? VS向我表明DLL名称并不在目前的情况下存在。

I am working on a project targeting .NET 4.0 and now I need to reference a third party dll which was built targeting .NET 4.5. It seems that visual studio does not accept that? Why? VS shows me that dll name does not exist in current context.

推荐答案

由于您引用到更高的版本。微软可以backcompatible,而不是未来兼容。您需要将整个项目转换为更高vesion,为了能够使用二进制。

Because you are referencing to the higher version. Microsoft can be backcompatible, but not "future compatible". You need to convert your entire project to higher vesion, in order to be able to use that binary.

不知道你在说什么TECNOLOGY,但如果该 asp.net ,认为在vNext你可以部署自己的服务器上的云CLR版本。所以,你的可以的有2个版本的应用,一是目标定位 4.5 ,其他 4.0

Don't know what tecnology you are talking about exactly, but if that asp.net, consider that in vNext you are able to deploy your own version of the cloud clr on the server. So you may have 2 versions of your app, one targetting 4.5, other 4.0.

介绍vNext 。重复,如果这涉及你。

Introducing vNext. Repeat, if this concerns you.

这篇关于为什么不能在.NET 4.0项目中引用一个4.5组装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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