July 24, 2014 09:17 by
Scott
Good news here!! MVC 6 has been released by Microsoft. What interesting in ASP.NET MVC 6? ASP.NET MVC 6 which is called ASP.NET vNext, this includes so many new cloud optimized versions of MVC6, Web API3, Web Pages4, SignalR3 and Entity Framework7.
Below are some new features in ASP.NET MVC 6/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.
- 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
- .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
- Dependency injection is built into the framework. Now, you can use your preferred IoC container to register dependencies.