.NET 4.5 and how it sits in the .NET ecosystem
Join the DZone community and get the full member experience.Join For Free
.net 4.5 is the next release and it is important to take a look how it fits in the .net ecosystem. this is the 8th major release of .net! what do i mean by major release? i mean any release that is not a patch/support only release, or put another way a major release it included major new features in the clr and/or a new language options.
sxs vs. replacement
in .net we are lucky that many versions can run side by side (sxs) provided they have different versions of the clr, however if a new major release shares the same clr it is a replacement/additive version. for example: .net 3.0 used the same clr as .net 2.0 (the clr 2.0) and when installed replaced many of the files in .net 2.0 with new versions and it is only via compiler directives that some things are turned on and off. the advantage of the sxs model is installing a new version doesn’t influence apps on the previous version in any way (i.e. if the app is 1.1 and works fine before .net 2.0 was installed, it will keep working fine after .net 2.0 is installed).
the problem with replacement model is that there is a chance that installing a new version breaks apps on the original version – however microsoft does a ridiculous number of testing to make sure this doesn’t happen, so that chance is very small. in fact if you happen to hit one, the chance is higher you are using undocumented features or using features incorrectly.
the reason for this explanation of sxs vs. replacement is that .net 4.5 is an in place replacement for .net 4.
part of the confusion i suspect around me saying that .net 4.5 is the eighth release is because microsoft naming of versions is about as far from logic as you can get – the worst examples are the .net version 3.5 sp 1 is a major release labelled a service pack 1?! and the fact we do not have a version 3 of the clr, it was just skipped?!
the other aspect is that versions of the clr, versions of the framework and versions of the languages are completely out of sync, so .net 4.5 runs on the clr version 4 and we write code in c# version 5.0 or vb version 11.0 – cause that makes sense :s
here is an awesome poster to help remind you of all the above!
Published at DZone with permission of Robert Maclean, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.