This post will give you an introduction to ASP.Net vNext and cover what all new things have been introduced with it.
ASP.Net vNext is designed for building cloud based apps easily. It is built on top of .Net vNext.
Following are the salient features of ASP.Net vNext: -
- ASP.Net vNext can use cloud optimized .Net vNext. This enables developers to use common API’s for access services like session, caching, etc. irrespective of cloud hosting or server hosting
- ASP.Net vNext allows you to deploy your own .Net framework on an app to app basis (side by side). Thus, developers can upgrade the .Net Framework for required apps.
- MVC and Web API, Web Pages and SignalR have been merged into MVC 6. It uses common This means a Single controller can returns MVC views as well as Web API responses. They have been decoupled from System.web. ASP.Net Web Forms are still part of system.web and hence are still not part of ‘Cloud Optimized’ stack. Since, MVC 6 is a leaner framework now, this would result in apps with smaller footprint which would result in faster startup time and lower memory consumption.
- New configuration system implemented which allows the developers to use the same API’s to access configuration values from local or Azure configuration.
- NuGet packages have been brought to forefront with ASP.Net vNext. ASP.Net vNext and CLR itself are being shipped as NuGet packages. Developers can reference only the required functionalities.
- As ASP.Net nNext uses new .Net Compiler (‘Roslyn’), code is compiled dynamically. That means developers can change the code and refresh the browser to see the changes take effect.
- Dependency Injection built into the framework for configuring environment specific services/libraries.
- ASP.Net vNext is Cross Platform enabled thanks to ‘Mono Project’ and end to end use of Dependency Injection across the stack. Developers can build and deploy across Windows, Mac or Linux platform.
- Microsoft has gone open source with ASP.Net vNext. Access github here
P.S. For any errata/suggestions/comments/questions please use the comments section below