开发者

Will .NET 2 application work on .NET 3?

开发者 https://www.devze.com 2023-02-15 13:18 出处:网络
If I program an application designed for .NET 2 and then a computer with only .NET 3 installed launch the application - will it work?

If I program an application designed for .NET 2 and then a computer with only .NET 3 installed launch the application - will it work?

I know there are some significant changes between the frameworks, such as obsolete methods and for example new features like LINQ (was it only 3.5?).

What if I have tested the code with .NET 3 and it works?

To describe what my situation is: I have both .NET 2 and .NET 3 on my PC - there are absolutely no problems when I click on "projects -> settings -> .NET 2" and then startwithoutdebugging. There are also absolutely no problems when i do projects -> settings -> .NET 3 and then start the app with开发者_Go百科out debugging.

I just want to be sure that my application will run on any machine that has .NET >= 2.0.


Everything from 2.0 to 3.5 runs on top of the same version of the .NET run-time so yes, your application will be fine.


.net 3.0 is basically .net 2.0 plus service pack plus some libraries.

The extra libraries won't hurt, but there are changes in the service pack; you could in theory hit an edge case that makes it not work. So test it.

But usually you are fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号