RDN Express Blog

Blog archive

ASP.NET MVC 3 Preview Unveils 'Razor'

Microsoft released the first preview of version 3 of its popular model-view-controller framework for building ASP.NET Web applications. An alternative to Web Forms, ASP.NET MVC is used to establish a separation of concerns in Web applications that facilitates test-driven development and maintenance.

ASP.NET MVC 2 shipped in March with support for .NET 3.5 and Visual Studio 2008 project templates. An updated version shipped as part of the Visual Studio 2010/.NET 4 release in April. The updates have come quickly since ASP.NET MVC 1 was first released in April 2009.

ASP.NET MVC 3 is built on top of the ASP.NET 4 runtime and requires Visual Studio 2010. It is backwards compatible with version 2 and can be used on the same server as ASP.NET MVC 2 projects, according to Microsoft.

The big reveal in this preview is the first look at the "Razor" syntax markup template, the new view engine that Scott Guthrie and others described earlier this month. Guthrie walks through a simple example using Razor in his blog and outlines upcoming features expected in future previews, intellisense and colorization support, among them.

"The VS 2010 editor will support Razor file intellisense for C#/VB code, as well as for HTML/CSS/JavaScript," he said.

The ASP.NET MVC 3 preview introduces support for multiple view engines--the built-in Razor, third party or custom templates. New features in .NET 4 such as model validation attributes (System.ComponentModel.DataAnnotations) in ASP.NET and dynamic properties (View and ViewModel) in VB and C# are supported. Developers can also expect broader support for Dependency Injections, as Microsoft adds support for Inversion of Control containers and formalizes the process of registering a service locator, which remains optional. Microsoft is also working on JavaScript improvements in Version 3; JSON binding is supported in the first preview.

Check out the new technology and tell us what you think. Get the ASP.NET MVC 3 Preview 1 download here. Express your thoughts below or drop me a line at krichards@1105media.com.

Posted by Kathleen Richards on 07/27/2010 at 12:54 PM


comments powered by Disqus

Reader Comments:

Add Your Comment:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Comment:
Please type the letters/numbers you see above