简体   繁体   English

在Framework 4.0项目中使用.NET Framework 4.5 dll

[英]Use .NET Framework 4.5 dll in Framework 4.0 project

I am working on a project which is build on dot net 4.0 and i have a need to use some .dll's which are released with dot net framework 4.5. 我正在开发一个基于dot net 4.0构建的项目,我需要使用一些随dot net framework 4.5发布的.dll。 Is there a way to include and use them on my project? 有没有办法在我的项目中包含和使用它们? If Yes then please suggest the way. 如果是,那么请建议方式。 Thanks in advance.. 提前致谢..

You can't use a 4.5 dll in a 4.0 project. 您不能在4.0项目中使用4.5 dll。 Think about upgrading your 4.0 project or downgrading the 4.5 project. 考虑升级4.0项目或降级4.5项目。 Upgrading will probably the easiest, because if the 4.5 is using 4.5 features (if not, why make it a 4.5 project...), you will have to rewrite them to 4.0. 升级可能是最简单的,因为如果4.5使用4.5功能(如果没有,为什么要使它成为4.5项目......),你将不得不将它们重写为4.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM