Can .NET 4.5 assemblies reference .NET 4.0 assemblies?

半城伤御伤魂 提交于 2021-01-29 03:50:57

问题


I'm thinking about using Awesomium.NET for a project I'm working on which is built with .NET 4.5. Awesomium.NET targets the .NET 4.0 Client Profile. Will it be OK to reference the 4.0 libraries from a 4.5 project?


回答1:


That should be fine, both .Net 4.0 and .Net 4.5 use CLR 4.




回答2:


In general, assemblies compiled in .NET 1.1 or later can be referenced in higher runtime (CLR) versions. However, you cannot reference an assembly compiled in 4.0 in runtime 3.0



来源:https://stackoverflow.com/questions/25499469/can-net-4-5-assemblies-reference-net-4-0-assemblies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!