someoneyeah
someoneyeah

Reputation: 81

Will .NET 2 application work on .NET 3?

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 without debugging.

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

Upvotes: 1

Views: 165

Answers (2)

Marc Gravell
Marc Gravell

Reputation: 1063884

.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.

Upvotes: 2

Justin Niessner
Justin Niessner

Reputation: 245479

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.

Upvotes: 8

Related Questions