简体   繁体   English

在.net 4.0库中使用.net 4.0之前的项目或库?

[英]using pre .net 4.0 projects or libraries within a .net 4.0 library?

Is it permissible? 可以吗? that is, for example, using a .net 2.0 library within a .net 4.0 project, or having a .net 2.0 project side-by-side a .net 4.0 project within the same solution interacting with each other? 例如,在.net 4.0项目中使用.net 2.0库,还是在同一解决方案中将.net 2.0项目并排放置的.net 4.0项目彼此交互?

I am using Visual Studio 2010 我正在使用Visual Studio 2010

Thank you 谢谢

Yes, it's permissible. 是的,这是允许的。

.NET 4 assemblies will reference and use .NET 2/3.5 assemblies with no issues. .NET 4程序集将毫无问题地引用和使用.NET 2 / 3.5程序集。

However, you can't reference a .NET 4 library from a CLR 2 (.NET 2.0/3.5) project. 但是,您不能从CLR 2(.NET 2.0 / 3.5)项目中引用.NET 4库。

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

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