Get Ready for ASP.NET 5 with Some Exciting New Features!!

January 28, 2015 Published by: Disha Kakkad

ASP.NET 5 Features

Microsoft’s flagship product ASP.NET framework has proved to be successful since its launch as it’s user-friendly and has powerful features. Continuous efforts have been put in by Microsoft to bring enhancements in its features so as to fit the changing business requirements. The latest version of .NET framework – ASP.NET 5 which represents the full reimagining of the framework is an effort towards the same. The purpose is to create modern applications for both cloud and local servers and simplify the development process. Here is a one-by-one walk-through of the new features of ASP.NET vNext.

MVC, Web API and Web Pages Merged

In ASP.NET 5, MVC, Web API and Web Pages have been bundled together into a single framework i.e. MVC 6. Prior to ASP.NET 5 the features of all three of them coincided, their implementation however being separate. The new approach eliminates duplication from the framework and makes it easier for developers to design apps that use these three frameworks. They are therefore not required to write different code irrespective of whether they are within MVC, Web API or Web Pages context.

Use of Different .NET Framework Simultaneously

When your application is dependent on a particular version of .NET, all your apps have to be run on the same version of the framework. You might have been apprehensive about upgrading to new version of .NET due to uncertainty about your legacy apps not working properly on the upgraded framework.

To overcome this, ASP.NET 5 allows you to define the dependencies within your deployment package. This will give you advantages of the latest releases for some apps while allowing you to stay with an older version for your legacy applications. Thus it supports side-by-side deployment where you can run different version of the framework simultaneously without facing any problem.

Capability to Self-Host or Host on IIS

ASP.NET gives the flexibility of hosting your application either on IIS or self-hosting it in a custom process. By targeting the Core CLR, application can be deployed with all dependencies tied together within the deployment package. This is the reason why your application and its dependencies are complete in themselves and no longer require dependency on system installation of .NET. Due to this, you can run your application on any type of device or hosting platform. You will not have to decide which development framework to use based on your hosting and vice-versa.

New Flexible & Cross-Platform Runtime

Earlier, the .NET Framework used to be delivered as one single installation with new features being incorporated with every release without removing any, leading to a steady increase in the size of framework. This was followed solely to ensure that .NET installed Windows system supports all .NET applications. But there were chances of every application not using all the features installed as well.

Thus to overcome this, ASP.NET 5 will provide improved flexibility, consisting of three different runtime environments:

    • Full .NET CLR: This is the default runtime which provides the entire API set. It will be the best option if you are looking for compatibility of your previous application with ASP.NET.
    • Core CLR (Cloud Optimized CLR): This is a modular runtime which gives flexibility of incorporating only those features which you require in your application, being added as NuGet packages. Your application is thus dependent only on the features you need. The Core CLR is about 11 MBs which is very less as compared to full .NET CLR which is 200 MBs. All components get updated on their own as per their schedule. Different Core CLR versions can run simultaneously and can be installed with your application.
    • Cross Platform CLR: This runtime will help you to develop and run .NET apps on Mac and Linux OS supported devices. Until this runtime comes to you, Mono community can be utilized for cross – platform development.

Open Source Advantage

ASP.NET is going to be made open source with its source code being hosted on GitHub. GitHub will act as a repository for development with all changes being visible including when they were made. You will be able to download the code and submit changes.

Easy Deployment to Cloud

ASP.NET is cloud optimized and can be integrated with Azure including facility to publish your website directly on Azure cloud platform. You will also be offered diagnostic and tracing tools allowing you to easily detect issues with your cloud application.

Modular HTTP request pipeline

With ASP.NET 5, a new lean and fast HTTP request pipeline is launched. This modular pipeline will allow you to only add components that you need to run your application. Your overhead in the pipeline diminishes and output from your app is improved.

Dependency Injection

Dependency Injection is built into ASP.NET 5 framework which helps in giving the right services for the environment. You can now use your preferred Inversion of Control (IoC) container to register dependencies.

Agility in Development

With ASP.NET you will not be required to rebuild the project every time you make the code changes. After the changes have been made, you can save them, refresh the browser and new changes will be reflected. These changes can be incorporated in the project itself or in a class-library.

Legacy Applications Supported

There will not be any need of rewriting your applications built on earlier versions of ASP.NET. They will work with new version of .NET as well. No updating or migration of legacy applications will be required in case of you don’t want new features of the latest release.

ASP.NET 5 is a portray of new aspect of .NET framework, where you can choose to work with tools and operating systems of your preferences, with complete benefits of open-source and cross-platform being delivered. The latest version bundles MVC, Web API and web pages in a single package and offers modularization. You will be able to run multiple versions of the same application side-by-side. ASP.NET 5 will thus transform the way development takes place and take it to a new level.

Semaphore Software specializes in providing ASP.NET Application Development Services as well as ASP.NET Legacy Application Migration Services to its clients across the globe since 10+ years now. We continuously update ourselves with the latest .NET versions and will help you to build cost-effective and innovative applications running on ASP.NET 5!!

Do you have any ASP.NET requirement? Hire Expert ASP.Net Developers from Semaphore Software Now !!