问题
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