What are the features of ASP.NET MVC 6?

Can someone tell me what new features are available in ASP.NET MVC 6.0? And what a very nice feature that insists that I port my MVC project MVC 5.0 to MVC 6.0?

+43
asp.net-mvc
Jul 02 '14 at 14:11
source share
3 answers

This is the best list I found that answered a few of my questions:

http://www.dotnet-tricks.com/Tutorial/mvc6/5R9E190514-Introduction-to-ASP.NET-vNext-and-MVC-6.html

Here's a quick overview of the 10 features they reviewed:

  • Cloud-optimized versions of MVC, Web API, web pages, SignalR and EF
  • MVC, web APIs, and web pages combined into one structure (MVC6)
  • No dependency on System.Web (the graph of the HttpContext object drops from ~ 30k / req to ~ 2k / req)
  • Extension of the new project.json project to display all dependencies and the Startup class, which replaces global.asax
  • Cloud ready for design. Session state and caching adjust behavior depending on the hosting environment.
  • Host agnostic
  • True Side-by-Side Deployment. Just load the dependencies into the bin directory without affecting other applications on the same server.
  • Dependency Inclusion
  • Roslyn compiler for compiling dynamic code. Change the code and view the changes without rebuilding
  • Open Source and cross-platform (can work on Mono, Mac, Linux, etc.)
+39
07 Oct '14 at 18:59
source share

Best tricks in MVC6

  • Asp MVC 6 has added a new cloud computing optimization system MVC, Web API, SignalR and entity.
  • Microsoft removed the dependency of system.web.dll from MVC 6 because it is so expensive. It typically consumes 30 KB of memory per request / response. Right now, MVC 6 consumes 2K of memory per request request. This is too little memory.
  • Microsoft is creating a package of MVC, web APIs, web pages, signals, this package, which we called MVC 6.
  • Most of the problem is resolved using the Roslyn compiler.
  • ASP.Net vNext used the Roslyn compiler, using the Roslyn compiler, there is no need to compile the application, it automatically compiles the application code.
  • .Net vNext has a new project.json project extension. Mostly a project. json contains all the application dll dependency.
  • In MVC 5.1 and 5.2, Enum and EnumHelper are supported in razor modes.
  • .Net vNext is a cross-platform and open source software.
+15
Dec 05 '14 at 7:04
source share

I have posted in detail on my blog, please check.

  • Web forms, MVC 5, Web API 2, web pages 3, SignalR 2, EF 6, Identity 2 will be fully supported in .NET vNext.
  • MVC, Web API, Web Pages 6, SignalR 3, EF 7, Identity 3
  • MVC, web APIs and web pages were combined into a single MVC 6 structure. For example, now there is a unified controller and routing concepts between all three.
  • New project system
  • New configuration system
  • No System.Web, new lightweight HttpContext (not System.Net.Http)
  • We will have a migration tool that helps you port your application to use ASP.NET vNext in .NET vNext and the optimized .NET vNext cloud. This will cover scenarios such as moving from MVC 5 to 6 or more.

http://www.dotnet-stuff.com/tutorials/aspnet-vnext/asp-net-vnext-overview-and-features-mvc6-web-api-web-pages-and-single-r

+6
Nov 19 '14 at 11:32
source share



All Articles