I wan't to upgrade my MVC.Net site to 3.0 and also upgrade my asp.net view engine to the Razor.
I have seen that e.g. master pages look a bit different, so are there 开发者_JAVA技巧any tutorials on how to do a switch from asp.net to Razor?
Also how can I update the view engine for an existing site?
I'd also suggest reading the blog posts by ScottGu as they're the best documentation that we've got for Razor.
I can suggest you try this tool for converting the bulk of the views (at least the simple ones):
https://github.com/telerik/razor-converter
But don't get me wrong - the conversion still requires human input and lots of it. Detailed knowledge of the Razor conventions is very much important.
Good luck!
Scott Gu has a good series of blog posts about how Razor layouts work.
精彩评论