is .NET 100% backwards compactable?

chronodekar

Senior member
Nov 2, 2008
721
1
0
My understanding was that a .NET 1.0 byte-code will run the same on a .NET 1.0, 2.0 or 4.0 framework without any difference.

Recently Microsoft announced that some .NET API related to Oracle would be depreciated from 4.0 onwards. That made me realize that the source-code might not be compatible across the different SDKs.

So, if we code for .NET 1.0 today, we might need to change our source code if we're trying to compile with the .NET 4.0 SDK.

Is my understanding correct?

-cd

PS - I'm in a hurry this morning to google it, so any follow-up links will be most appreciated.
 

Snapster

Diamond Member
Oct 14, 2001
3,917
0
0
Some things get depreciated between versions (eg: System.Web.Mail to System.Net.Mail) and you will be warned by the compiler or such depreciations and will have to make changes at some point. As good as Microsoft is at maintaining legacy API's, you should always test after recompiling in a new version out of good practise, even if there are no warnings / errors picked up.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Originally posted by: Snapster
Some things get depreciated between versions (eg: System.Web.Mail to System.Net.Mail) and you will be warned by the compiler or such depreciations and will have to make changes at some point. As good as Microsoft is at maintaining legacy API's, you should always test after recompiling in a new version out of good practise, even if there are no warnings / errors picked up.

Good to hear that. Yes, after every compile, testing is a MUST. There can be no real substitute.

But for an old .NET byte-code that was compiled using .NET 1.0, if it used something that is depreciated now, will it still run in the .NET 3.5 framework?

I'm not asking about re-compiling, just using the same executable.

-cd
 

avnair2

Junior Member
May 25, 2009
1
0
0
My undestanding of .NET is that you will have to install the 1.0 framework. You can have (and probably do) multiple versions of the .NET framework installed on a computer at any given time, and it will automatically select at runtime the 1.0 .dlls to load with your compiled application. So, as long as Microsoft supports the .NET 1.0 framework on the OS you are trying to run it on you should be OK. I have no idea what versions of .NET they are going to support on Windows 7 for instance.
 

Snapster

Diamond Member
Oct 14, 2001
3,917
0
0
Originally posted by: chronodekar
Good to hear that. Yes, after every compile, testing is a MUST. There can be no real substitute.

But for an old .NET byte-code that was compiled using .NET 1.0, if it used something that is depreciated now, will it still run in the .NET 3.5 framework?

I'm not asking about re-compiling, just using the same executable.

-cd

If you have the version of the framework installed that the application was targeted for then that version will be used (side by side compatibility). If you however, do not have the target version installed for example .Net 1.1 in Vista is not installed by default the next newer version will be used and 'should' run as expected (2.0 in this case even if you had 3.x installed).

As previously mentioned there are some parts of the framework that were depreciated due to security changes.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Hmm... that's kinda disappointing. So my original assumption was wrong. It's better to have the framework that my code was targeted for.

Thanks a lot for your help guys! :thumbsup:

-cd
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |