Introduction to ASP.NET vNext

Introduction

Recently, Microsoft announced the preview availability of the next generation of ASP.NET called ASP.NET vNext.

Microsoft has chosen a new direction with ASP.NET vNext – it is open-source.

Here are the top 10 things we need to know about ASP.NET vNext.

  • ASP.NET vNext has been redesigned from the ground up to optimize it for cloud based applications.
  • ASP.NET vNext combines MVC, Web API and Web pages into one framework, now identified as MVC 6, which uses a common set of abstractions for routing, action selection, filters, model binding and many more features.
  • The MVC6 framework is leaner framework that has no dependency on System.Web, which results in a faster startup time and lower memory consumption.
  • To support cloud applications, the vNext apps have a smaller footprint. A subset of the .NET framework for vNext apps is 11 MB in size compared to the regular .NET framework size of 200 MB.
  • Side-by-Side deployment is possible for vNext applications running different versions of the framework on the same server.
  • vNext apps are insulated from server framework changes.
  • ASP.NET vNext is host-agnostic – a vNext app will run in IIS as well as another custom process, which will self-host vNext.
  • Dependency injection works out of the box on ASP.NET vNext applications since it is part of the core framework now.
  • ASP.NET vNext uses the Roslyn compiler – this implies that code is compiled dynamically. This provides the ability to edit a file to make code changes and simply refresh the browser without the need to recompile the web application.
  • The biggest thing about ASP.NET vNext s that it is open-source – a marked shift from Microsoft, w.r.t.  its development tools.

We can see from the list above that the changes in ASP.NET vNext are not trivial. In fact, there are many breaking changes in ASP.NET vNext to support these new “improvements”.

New Features in ASP.NET vNext

ASP.NET vNext supports building websites powered by HTML5, CSS3 and JavaScript.

The new Web APIs in ASP.NET vNext support returns JSON and XML.

Support for real-time bi-directional client-server communication is provided in ASP.NET vNext via the ASP.NET SignalR library.

Building ASP.NET vNext Applications

Since ASP.NET vNext is still in preview phases, the standard caution goes out – avoid assuming that it will be production quality or that feature behaviors will be the same when it is finally realized.

To build ASP.NET vNext, we need to get the Visual Studio 14 CTP. Note that there are known compatibility issues with installing Visual Studio 14 CTP along with Visual Studio 2013. It is highly recommended that Visual Studio 14 CTP be installed on a virtual machine or on a clean installation.

Creating a new ASP.NET vNext application is simple. Once Visual Studio 14 CTP is installed, launch Visual Studio and create a new Web Application based on template names ASP.NET vNext Empty Web application.

Summary

In this article, we were introduced to ASP.NET vNext and learned how to get the development tools to begin developing ASP.NET vNext applications.

About the author

Vipul Patel is a Program Manager currently working at Amazon Corporation. He has formerly worked at Microsoft in the Lync team and in the .NET team (in the Base Class libraries and the Debugging and Profiling team). He can be reached at vipul.patel@hotmail.com



Related Articles

Comments

  • Introduction to asp.net v next

    Posted by Udal Bharti on 07/14/2014 10:26pm

    Nice post, I bookmark your blog because I found very good information on your blog, Thanks for sharing more information.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds