Pages - Menu

Thursday, April 2, 2015

Difference between .NET Framework 4.5 and 4.6

.Net Framework is a Programming Infrastructure developed by Microsoft to develop, deploy and run the applications and services using .NET technologies, such as web application, desktop application and web service.

Versions of Microsoft .NET Framework being released in market so far are:

.NET Framework 1.0
.NET Framework 1.1
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 3.5
.NET Framework 4
.NET Framework 4.5
.NET Framework 4.5.1
.NET Framework 4.5.2
.NET Framework 4.6
Difference between the .NET Framework 4.5 and 4.6 are:

Features
.NET Framework Versions
.NET Framework 4.5
.NET Framework 4.6
Visual Studio version
Visual Studio 2012
Visual Studio 2015 preview



.NET Native



-
If you are building and deploying Windows Store Apps. You can directly compile your codes to native code. Instead of first compiling to MSIL.

Event tracing
(EventSource object)
You can’t use it directly – you have to create a child class with event definitions.
EventSource object can be constructed directly and you can call one of the Write methods to emit a self-describing event.


Support for code page encodings (CodePagesEncodingProvider)



-
You can add support for code page encodings available in the .NET Framework but unsupported in .NET Core by registering code page encodings with the Encoding.RegisterProvider method
ASP.NET version
ASP.NET 4.5
ASP.NET 5

64-bit JIT Compiler for managed code

It features a new version of the 64-bit JIT Compiler. This new compiler provides significant performance improvements over the existing one.

.NET Native:

Most application that target the .NET Framework are compiled into MSIL(Microsoft Intermediate Language). At runtime, a JIT compiler is responsible for the compiling the MSIL to native code for the local machine.

Using .NET Native, developers who are working on Windows Store apps, can directly compile source codes to native codes. It will help them to produce apps characterized by faster startup and less execution time.

Event Tracing:

In version 4.6, EventSource object can be constructed directly, and to emit a self-describing event, you can call one of the Write methods. 

But in 4.5, you can not call EventSource object directly. First, you have to create a child class with event definitions. 

Support for Code Page Encoding:

.Net Framework 4.6 includes one encoding provider, CodePagesEncodingProvider, that makes the different encoding types available that are present in the full .NET Framework but are not present in .NET Framework 4.6. By default, .NET Framework 4.6 supports only 3 encoding techniques- Unicode encodings, ASCII and code page 28591.

If you need to use different encoding technique which are not available in .Net Framework 4.6, you can add support using Encoding.RegisterProvider method.

ASP.NET 5:

.NET Framework 4.6 includes, ASP.NET 5, is a lean .NET Stack for building modern web applications for both cloud servers and on-premises servers. ASP.NET 5 is modular, so you can include specific features needed in your application. 
  • You can run different apps with different versions of the framework on the same server. 
  • ASP.NET MVC, Web API, and Web Pages have been unified into a single framework called MVC 6.
  • ASP.NET 5 is fully open source and available on GitHub.
  • It can be hosted on IIS or self-hosted in your own process.
  • Ability to see changes without re-building the project.

No comments:

Post a Comment