我可以引用.NET 3.5 .DLL在4.0的应用程序? [英] Can I reference a .NET 3.5 .DLL in a 4.0 app?
问题描述
主题说,这一切...如果我有一个.NET 4.0的应用程序,我可以添加的引用2.0 / 3.0 / 3.5 .DLL?我没有VS2010安装,所以我不能检查自己(我做的那一刻研究)。
The subject says it all... If I've got a .NET 4.0 app, can I add a reference to 2.0/3.0/3.5 .DLL? I don't have VS2010 installed so I can't check myself (I'm doing research at the moment).
我试图找到SO和谷歌双方的信息,但我得到相互矛盾的答案。
I've tried to find information on both on SO and Google, but I get conflicting answers.
推荐答案
是的,你可以 - 但如果它是一个混合模式组件(即含有天然code和.NET code的混合物),然后我认为可能会造成问题。 (IIRC MySQL驱动有这个问题最近,和开发者不得不在.NET 4重建,以得到它的工作。)
Yes, you can - but if it's a mixed mode assembly (i.e. contains a mixture of native code and .NET code) then I believe that can cause problems. (IIRC the MySql driver had this problem recently, and devs had to rebuild under .NET 4 to get it to work.)
这篇关于我可以引用.NET 3.5 .DLL在4.0的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!