Chapter 23. Upgrading to ASP.NET MVC 4

 

This chapter covers
  • Switching views based on device
  • Exploring bundling capabilities
  • Removing unnecessary Razor code

 

When upgrading an application to ASP.NET MVC 4, you can take advantage of new framework features like bundling, Razor enhancements, and DisplayModes. This is exactly what we’ll be doing in this chapter: looking at what upgrading to MVC 4 will do for you with regards to adding functionality to your system, deleting code, and easing ongoing maintenance.

Bundling is slick out-of-the-box support for combining and minifying both JavaScript and Cascading Style Sheet (CSS) files, which results in faster page loads. We’ll look at some small but exciting changes to the Razor view engine that ...

Get ASP.NET MVC 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.