MVC6
Features of ASP.NET vNext
ASP.NET vNext includes new cloud-optimized versions of MVC, Web API, Web Pages, SignalR, and Entity Framework.
MVC, Web API and Web Pages have been merged into one framework, called MVC 6. This will follow common programming approach between all these three i.e. a single programming model for Web sites and services.
For example, there is unified controller, routing concepts, action selection, filters, model binding, and so on. In this way, You will have a single controller that returns both MVC views and formatted Web API responses, on the same HTTP verb.
MVC 6 has no dependency on System.Web since it was quite expensive. A typical HttpContext object graph can consume 30K of memory per request and working with small JSON-style requests this is very costly. With MVC 6 it is reduced to roughly 2K. The result is a leaner framework, with faster startup time and lower memory consumption.
ASP.NET vNext has new project extension project.json to list all the dependencies for the application and astartup class in place of Global.asax.
ASP.NET vNext apps are cloud ready by design. Services such as session state and caching will adjust their behavior depending on hosting environment either it is cloud or a traditional hosting environment. It uses dependency injection behind the scenes to provide your app with the correct implementation for these services for cloud or a traditional hosting environment. In this way, it will easy to move your app from on-premises to the cloud, since you need not to change your code.
.NET next version, .NET vNext is host agnostic. Hence you can host your ASP.NET vNEXT app in IIS, or self-host in a custom process.
NET vNext support true side-by-side deployment. If your app is using cloud-optimized subset of .NET vNext, you can deploy all of your dependencies including the .NET vNext (cloud optimized) by uploading bin to hosting environment. In this way you can update your app without affecting other applications on the same server.
Dependency injection is built into the framework. Now, you can use your preferred IoC container to register dependencies.
.NET vNext use the Roslyn compiler to compile code dynamically. Hence you will be able to edit a code file and can see the changes by refreshing the browser; without stopping or rebuilding the project.
.NET vNext is open source and cross platform. It can run on Mono, on Mac and Linux.
ASP.NET MVC6 | ASP.NET vNext
Single Programming Model for ASP.NET MVC and ASP.NET Web API.
Optimized for Cloud Computing.
Supporting side by side deployment of runtime and framework along with application.
Out of the box support for dependency injection.
vNext is Open Source and supports running on multiple platforms including Linux and Mac.
New JSON-based project Extension.
In order to dynamically compile code, Roslyn compiler is used.
For details on new features in ASP.NET vNext, follow here.
Tо begin with, there’s Full CLR runtime facilitating that bеginѕ uр thе full .NET 4.5 Frаmеwоrk runtimе аnd can еxрlоit аll thе соmроnеntѕ in thе full dеѕktор structure. Be thаt аѕ it mау, vNext аdditiоnаllу presents another Cоrе CLR thаt uses a сuѕtоm runtimе loader thаt rаiѕеѕ a lightweight vаriаnt of the Cоrе CLR runtimе.
New light-weight and modular HTTP request pipeline
Ability to host on IIS or self-host in your own process
Built on .NET Core, which supports true side-by-side app versioning
Ships entirely as NuGet packages
Single aligned web stack for Web UI and Web APIs
Cloud-ready environment-based configuration
Built-in support for dependency injection
Build and run cross-platform ASP.NET apps on Windows, Mac and Linux
Open source and community focused