Thursday 21 May 2015

ASP.NET 5/ MVC 6




MVC6 is part of ASP.NET 5, which is the next version of ASP.Net     (ASP.NET vNext).



1. ASP.NET 5 applications can run on Windows, OSX, and Linux.

2.  Asp.Net  Web forms is not a part of ASP.NET 5. We can continue to build Web Forms apps in Visual Studio 2015 by targeting the .NET 4.6 framework. However, Web Forms apps cannot  take advantage of any of the new features of ASP.NET5

3. ASP.NET 5 only supports C#  and there is no Visual Basic .

4. We have Tag Helpers instead of HTML Helpers in MCV6.

5. Instead of  Html.Action() helper, MVC6 Includes an alternative technology called View Components.

6. In MVC 6, WEB API is merged with MVC. This means we will now have one set of controller class, one set of attributes, model binders etc Microsoft.Asp.Net.Mvc.Controller is the base class.

   MVC 6 = ASP.NET MVC + WEB API

7.  Built -in support for Dependency Injection.

8. VS 2015 includes templates for creating AngularJS modules, controllers, directives, and factories. We can interact with an MVC 6 controller from an AngularJS $resource using REST.