DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report

.NET 4.5 and how it sits in the .NET ecosystem

Robert Maclean user avatar by
Robert Maclean
·
Mar. 28, 12 · Interview
Like (0)
Save
Tweet
Share
4.24K Views

Join the DZone community and get the full member experience.

Join For Free

introduction

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

version naming

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

awesome poster

here is an awesome poster to help remind you of all the above!

image

Release (agency)

Published at DZone with permission of Robert Maclean, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Scaling Your Testing Efforts With Cloud-Based Testing Tools
  • Java Concurrency: LockSupport
  • A Beginner’s Guide To Styling CSS Forms
  • Demystifying Multi-Cloud Integration

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: