What is the best way to migrate a MVC 2 project to MVC 3 using the Razor view engine?
There is no substitute for learning the Razor Syntax
Programming Razor
I think that some developers over-think razor and make it harder than it is. If you know HTML, JavaScript and C#, just learn some of the basic syntax like a code block
@model MyApp.Models.MyEntity
@{
// this is a code block
ViewBag.MyData = "i need to use a semicolon here";
}
//This is inline razor/C# code that uses a
//lambda expression to access a model property:
@Html.TextBoxFor(m => m.MyProperty)
The razor engine knows where the C# ends and the HTML begins, you just need to learn a few basic rules.
Edit: The point I am trying to make is that tools are not the only way to convert from MVC 2 to MVC 3 or 4 Razor. Conversion tools are not perfect. Knowledge of the Razor syntax can also be very helpful.