Erx_VB.NExT.Coder
Erx_VB.NExT.Coder

Reputation: 4856

Will .NET Framework 1.x apps run on PC's with .NET 4.0 only?

Basically, i am trying to determin if an application made for 1.x will run on a computer with just one copy of the .NET framework installed which is a higher version than what i am targetting, ie: it only has one copy of .NET 2.0, or 3.0, or 3.5 or 4.0 - has one copy of either of these and thats it, the hypothetical computer would not have 1.0 or 1.1 installed.

Trying to determine if 1.0 or 1.1 app would run here - the app is a simple app and im just trying to get the largest reach possible without the need to install the framework (and yes, i realize the frameworks are really small now days at about 40mb, but this is still not an option for me). thanks

an aside: btw, i have googled this to no avail, do we have or does anyone know adoption stats in terms of % of windows computers that run (say) 2.0, 1.x, 3.5 etc... or 2.0 and above, or 1.x and above? there is a reference on scott hanselmans blog but this seems really optimistic and incorrect to me as i did some user-string analysis of common users, and adoption of 2.0+ was barely above 50% while hanselmen said according to windows update data it was 95% (and this was in janruary 2010).

Edit\Update Could someone please confirm if Nayan's answer (and Daniels point under Darins answer) is correct? If so, this would change everything!

Upvotes: 3

Views: 1187

Answers (5)

Scott Chamberlain
Scott Chamberlain

Reputation: 127583

To answer your aside the wikipedia page shows what versions of windows have what version of .net pre-installed by default

To answer your main question. I know 100% that if you have 3.5 it will run 1.0-3.5 with just that installed. However I do not know if that is true for 4.

Upvotes: 1

Nayan
Nayan

Reputation: 3214

I don't think the question is very clear. I'll explain:

  1. If you are asking if the application is already built on .NET 1.x and you are trying to run it in any other version, it will not work. It would need the same version.

  2. But if you still have the code and are willing to recompile it on newer .NET versions, then you will have a newer .NET version compatible app!

What, I feel, missing in your question is that whether you are talking about built up apps or source codes.

Upvotes: 0

AutomatedTester
AutomatedTester

Reputation: 22418

. Net has been designed to always be backwards compatible. This means if we get to later versions it will still work.

It also means if the Microsoft team make a mistake it will still be there just a better way will be available

Upvotes: 1

Vinay B R
Vinay B R

Reputation: 8421

You should not have any problems running your application on .net 1+ frmaeworks.

Upvotes: 1

Darin Dimitrov
Darin Dimitrov

Reputation: 1038990

Yes it will run fine if you have a higher version of the framework installed. It is backwards compatible. But in the end of 2010 there's very little sense in still keeping applications targeting .NET 1.*. You could at least recompile them to target the .NET 2.0 if not .NET 3.5 or 4.0.

Upvotes: 3

Related Questions