can i call a .net 2.0 dll in .net 3.5?

送分小仙女□ 提交于 2021-02-08 17:04:36

问题


I am migrating to .net 3.5 and I want to know whether I can call from my 3.5 application, old .net 2.0 dll's methods?

Some external API's are in .net 2.0 dll. So I need those.

Kindly let me know. Thanks.


回答1:


Yes. You can do that.




回答2:


.NET 3.5 is nothing more than .NET 2.0 SP2 with some additional assemblies. This means that .NET 3.5 is .NET 2.0, to a large extent.




回答3:


Yes, .NET remains compatible with old versions. There might be some obsolete code but it will still work. Only before 2.0 there can be compatibility issues.




回答4:


Yes.
Genrally, you can run .Net 2.0 applications on a computer with newer versions of .Net, and using a DLL isn't different.




回答5:


Sure, both are managed code soit should work as calling .net 3.5 assembly.



来源:https://stackoverflow.com/questions/3091117/can-i-call-a-net-2-0-dll-in-net-3-5

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