ASP.NET MVC 4 Beta
Post Info
Author: ScottGu's Blog
Date: Monday 20 February 2012
Full Post URL: http://weblogs.asp.net/scottgu/archive/2012/02/19/asp-net-mvc-4-beta.aspx
Post Summary
A few days ago we released the ASP.NET MVC 4 Beta. This is a significant release that brings with it a bunch of great new features and capabilities.
The ASP.NET MVC 4 Beta release works with VS 2010 and .NET 4.0, and is side-by-side compatible with prior releases of ASP.NET MVC (meaning you can safely install it and not worry about it impacting your existing apps built with earlier releases). It supports a “go-live” license that allows you to build and deploy production apps with it. Click here to download and install it today.
The ASP.NET MVC 4 Beta will also be built-into the upcoming VS11 / .NET 4.5 beta that is coming out shortly. This week’s beta doesn’t work with the previous VS11 developer preview that shipped last September – if you are using the VS11 Developer Preview (or have it installed) you’ll want to wait until the VS 11 beta is released before trying out the new ASP.NET MVC 4 Beta functionality.
ASP.NET MVC 4 Features
The ASP.NET MVC 4 Beta includes a bunch of great new features and capabilities. Some of the highlights include:
- Bundling and Minification – ASP.NET MVC 4 includes the new bundling and minification support we are also adding to ASP.NET 4.5. These features enable you to build web applications that load faster and feel more responsive to users, by minimizing the number and size of HTTP requests that your pages make. Included with the MVC 4 beta are new “cache busting” helper methods that enable easy proxy caching of bundled files (with automatic invalidation if you change the cached CSS or JavaScript). You can learn more about bundling and minification from my previous blog post about it.
- Database Migrations – ASP.NET MVC 4 includes the new Entity Framework 4.3 release, which includes a bunch of great new features. One of the most eagerly anticipated features it provides is database migration support. This enables you to easily evolve your database schema using a code focused migration approach – and do so while preserving the data within your database. I’ll blog more about this in the future - you can also see a walkthrough of database migrations in this tutorial.
- Web API – ASP.NET MVC 4 includes some fantastic new support for creating “Web APIs”. This enables you to easily create HTTP services and APIs that can be programmatically called from a broad range of clients (ranging from browsers using JavaScript, to native apps on any mobile/client platform). The new Web API support also provides an ideal platform for building RESTful services. I’ll be blogging much more about this support soon – it is really cool, and opens up a bunch of new opportunities.
- Mobile Web – ASP.NET MVC 4 includes new support for building mobile web applications and mobile web sites, and makes it much easier to build experiences that are optimized for phone and tablet experiences. It includes jQuery Mobile, and includes new support for customizing which view templates are used depending upon what type of device is accessing the app.
- Razor Enhancements – ASP.NET MVC 4 includes V2 of our Razor View engine. Razor V2 includes a bunch of juicy enhancements that enable you to make your view templates even cleaner and more concise – including better support for resolving URL references and selectively rendering HTML attributes.
- Async Support and WebSockets – You’ll be able to take advantage of some additional language and runtime capabilities when using ASP.NET MVC 4 with .NET 4.5 and VS 11. Async support is one of the big ones, and the ASP.NET MVC runtime support for this combined with the new C#/VB async language enhancements (which are super elegant and clean) is going to enable you to write incredibly scalable applications. You will also be able to take advantage of the new WebSocket support built-into .NET 4.5 to build applications with even richer browser/server communication.
I’ll be blogging a lot more about the above features in the weeks and months ahead. This is going to be an exciting release. There is a lot there that will both make you more productive (Bundling/Minification, Database Migrations, Razor V2) as well as enable you to build even richer web applications and experiences (Web API, Mobile Web, WebSockets).
Learning More About ASP.NET MVC 4
I gave a tech-talk about the new ASP.NET MVC 4 Beta at the Belgium and Dutch TechReady events last week. It provides a good overview that you can use to quickly come up to speed on the release.
You can watch or download a video of the talk for free via Channel9:

You can also download my slides (feel free to re-use them however you want).
Summary
I’m really excited about the upcoming ASP.NET releases we have coming out this year. ASP.NET 4.5 and ASP.NET MVC 4 are going to deliver a ton of new capabilities and enhancements, and the tooling updates we have coming with VS 11 and WebMatrix make the developer experience awesome.
I’ll be blogging a lot more about them in the weeks and months ahead.
Hope this helps,
Scott
P.S. In addition to blogging, I use Twitter to-do quick posts and share links. My Twitter handle is: @scottgu
A bit of a disclaimer
Please note that the content on this page does not belong to me in any way.
I've selected a number of blogs or news feeds here from sources that I value and am very
pleased to share with others. I have no rights to the content shown on this page and, equally, have no responsibility for the opinions expressed.
I do not attempt to claim any credit for the value of this information, other than any credit that is associated with reading and enjoying it myself.
ScottGu's Blog Posts
-
Great Free Course on Building ASP.NET MVC Apps With EF Code First, HTML5 and jQuery
ScottGu's Blog on 20-Apr-2012
-
Announcing Windows Azure Media Services
ScottGu's Blog on 16-Apr-2012
-
April 14th Links: ASP.NET, ASP.NET MVC, ASP.NET Web API and Visual Studio
ScottGu's Blog on 15-Apr-2012
-
“Unplugged” LIDNUG online talk with me on Monday (April 16th)
ScottGu's Blog on 14-Apr-2012
-
ASP.NET MVC, Web API, Razor and Open Source
ScottGu's Blog on 28-Mar-2012
-
ASP.NET Web API (Part 1)
ScottGu's Blog on 24-Feb-2012
-
ASP.NET MVC 4 Beta
ScottGu's Blog on 20-Feb-2012
-
TechDays in Belgium and Netherlands
ScottGu's Blog on 30-Jan-2012
-
Getting Started with Windows Azure
ScottGu's Blog on 20-Jan-2012
-
Windows Azure
ScottGu's Blog on 16-Jan-2012
-
“Unplugged” LIDNUG online talk with me on Monday (Jan 16th)
ScottGu's Blog on 12-Jan-2012
-
ASP.NET Security Update Shipping Thursday, Dec 29th
ScottGu's Blog on 29-Dec-2011
-
Learn Windows Azure Next Tuesday (Dec 13th)
ScottGu's Blog on 07-Dec-2011
-
New CSS Editor Improvements in Visual Studio (ASP.NET 4.5 Series)
ScottGu's Blog on 02-Dec-2011
-
New Bundling and Minification Support (ASP.NET 4.5 Series)
ScottGu's Blog on 28-Nov-2011
-
Web Forms Model Binding Part 3: Updating and Validation (ASP.NET 4.5 Series)
ScottGu's Blog on 31-Oct-2011
-
Web Forms Model Binding Part 2: Filtering Data (ASP.NET vNext Series)
ScottGu's Blog on 12-Sep-2011
-
Web Forms Model Binding Part 1: Selecting Data (ASP.NET vNext Series)
ScottGu's Blog on 06-Sep-2011
-
Web Forms Model Binding Part 1: Selecting Data (ASP.NET vNext Series)
ScottGu's Blog on 06-Sep-2011
-
Strongly Typed Data Controls (ASP.NET vNext Series)
ScottGu's Blog on 02-Sep-2011
-
Strongly Typed Data Controls (ASP.NET vNext Series)
ScottGu's Blog on 02-Sep-2011
-
HTML Editor Smart Tasks and Event Handler Generation (ASP.NET vNext Series)
ScottGu's Blog on 01-Sep-2011
-
HTML Editor Smart Tasks and Event Handler Generation (ASP.NET vNext Series)
ScottGu's Blog on 01-Sep-2011
-
ASP.NET vNext Series
ScottGu's Blog on 01-Sep-2011
-
Let’s get this blog started again…
ScottGu's Blog on 01-Sep-2011
-
June 26th Links: ASP.NET, ASP.NET MVC, .NET and NuGet
ScottGu's Blog on 27-Jun-2011
-
Free “Guathon” all day event in London on June 6th
ScottGu's Blog on 24-May-2011
-
Upcoming Conference talks in Norway, Germany and the UK
ScottGu's Blog on 17-May-2011
-
Great Free Video Training on ASP.NET Web Forms and ASP.NET MVC
ScottGu's Blog on 16-May-2011
-
ASP.NET MVC 3 and the @helper syntax within Razor
ScottGu's Blog on 13-May-2011
-
HTML5 Improvements with the ASP.NET MVC 3 Tools Update
ScottGu's Blog on 10-May-2011
-
EF Code First and Data Scaffolding with the ASP.NET MVC 3 Tools Update
ScottGu's Blog on 06-May-2011
-
ASP.NET MVC 3 Tools Update
ScottGu's Blog on 04-May-2011
-
Hacking Education: A Contest for Developers and Data Crunchers
ScottGu's Blog on 26-Apr-2011
-
My Annual Arizona .NET Speaking Event this Friday
ScottGu's Blog on 18-Apr-2011
-
RC of Entity Framework 4.1 (which includes EF Code First)
ScottGu's Blog on 20-Mar-2011
-
Visual Studio 2010 SP1
ScottGu's Blog on 15-Mar-2011
-
Free Video Training: ASP.NET MVC 3 Features
ScottGu's Blog on 10-Mar-2011
-
DevConnections Conference
ScottGu's Blog on 10-Mar-2011
-
March 6th Links: ASP.NET, ASP.NET MVC, jQuery, EF, .NET
ScottGu's Blog on 07-Mar-2011
-
36 Hour Free Offer: jQuery Fundamentals Training
ScottGu's Blog on 23-Feb-2011
-
ASP.NET mvcConf Videos Available
ScottGu's Blog on 23-Feb-2011
-
NuGet 1.1 Released
ScottGu's Blog on 14-Feb-2011
-
Special 48-Hour Offer: Free ASP.NET MVC 3 Video Training
ScottGu's Blog on 09-Feb-2011
-
Feb 2nd Links: Visual Studio, ASP.NET, ASP.NET MVC, JQuery, Windows Phone
ScottGu's Blog on 03-Feb-2011
-
“Unplugged” LIDNUG online talk with me Monday
ScottGu's Blog on 23-Jan-2011
-
Microsoft Web Farm Framework 2.0
ScottGu's Blog on 21-Jan-2011
-
Running an ASP.NET MVC 3 app on a web server that doesn’t have ASP.NET MVC 3 installed
ScottGu's Blog on 19-Jan-2011
-
VS 2010 SP1 and SQL CE
ScottGu's Blog on 12-Jan-2011
-
VS 2010 SP1 (Beta) and IIS Express
ScottGu's Blog on 04-Jan-2011
-
Links to my “Best of 2010” Posts
ScottGu's Blog on 01-Jan-2011
-
ASP.NET MVC 3: Layouts and Sections with Razor
ScottGu's Blog on 30-Dec-2010
-
ASP.NET MVC 3: Razor’s @: and syntax
ScottGu's Blog on 16-Dec-2010
-
Update on ASP.NET MVC 3 RC2 (and a workaround for a bug in it)
ScottGu's Blog on 15-Dec-2010
-
Announcing ASP.NET MVC 3 (Release Candidate 2)
ScottGu's Blog on 11-Dec-2010
-
Class-Level Model Validation with EF Code First and ASP.NET MVC 3
ScottGu's Blog on 10-Dec-2010
-
Announcing Entity Framework Code-First (CTP5 release)
ScottGu's Blog on 08-Dec-2010
-
Dec 5th Links: ASP.NET, ASP.NET MVC, jQuery, Silverlight, Visual Studio
ScottGu's Blog on 06-Dec-2010
-
Announcing Silverlight 5
ScottGu's Blog on 02-Dec-2010
-
Upcoming Web Camps
ScottGu's Blog on 22-Nov-2010
-
Silverlight Firestarter Event on Dec 2nd
ScottGu's Blog on 17-Nov-2010
-
“Unplugged” online talk with me this Friday
ScottGu's Blog on 16-Nov-2010
-
ASP.NET MVC 3: Server-Side Comments with Razor
ScottGu's Blog on 13-Nov-2010