Difference between MVC 3, MVC 4, MVC 5 and MVC 6
New Project Templates having support for HTML 5 and CSS 3, Improved Model validation.
Razor View Engine introduced with a bundle of new features.
2. MVC 3 MVC 4 MVC 5 MVC 6 (vNext)
Razor view engine ASP.Net Web API V1 ASP.NET Identity for
authentication
MVC 6 consume 2K
memory per request
response
Support for multiple view
engines
Project template Third party authentication
provider
Roslyn Compiler
Template HTML 5 and
CSS3 support
Mobile template Authorization for social
networking site just like
Google, twitter, face-book
etc
Microsoft removed the
dependency of
system.web.dll from MVC
6, because of it's so
expensive. Typically it
consume 30K memory per
request/response
Model validation Asynchronous Controllers Bootstrap default
template
ASP.NET on OSX and Linux
Controller Improvements Azure SDK support Attribute Routing Tag Helpers
Partial page output
caching
Bundling and Minification ASP.NET Web API 2 View Components
Dependency injection Support for OAuth and
OpenID
GruntJS, NPM, and Bower
Support
Unobtrusive JavaScript Single Page Application
3. Advantages of MVC
• Separation of Concerns - The MVC Paradigm of Model-View-Controller allows you to more
easily separate all of your concerns within your application. This can lead to improved
scalability within applications.
• Testing - MVC is designed and built for Testing-Driven Development and allows for
applications to be very easily tested to help secure against error and unexpected behaviour.
• Integration with Client-Side Tools - The MVC pattern easily allows client-side tools such as
jQuery to be seamlessly integrated. This can allow you to create very rich user interfaces for
your applications.
• Statelessness - Although one of the main advantages of Web Forms, this allows you to
adhere to a more stateless format consistent with the rest of the web.
• Control and Flexibility - MVC allows developers to have complete control over their
applications as the developer doesn't rely on Controls to automatically generate the
appropriate HTML, which after switching to MVC can often be seen as "bloated". The
developer will write their own HTML instead of having it generated for them.
• Search Engine Optimization - The use of Restful URLs within MVC makes it more friendly for
being accessed through search engines.