Easy way to convert web forms to MVC3?
I haven't worked with MVC3 that much - as it was just released, but I was wondering if there was some kind of conversion tool - to convert exisiting Views / Forms into the newer up-to-date "Razor" view engine.
I'm not sure if it is possible but I just thought this would be the place to as开发者_开发技巧k...
Thanks!
I recently read on Dave Hayden's blog this morning about Telerik releasing a Razor View Conversion tool. I believe they used it to convert all of their demos on their site from all of their existing WebForm view to the new Razor View engine.
Here is Dave's short blurb regarding the tool and if you want to play around with it yourself, it is available on Github using the following link:
Github - Telerik Razor Conversion Tool
Hope this helps you out (I haven't had the chance to play around with it much - but knowing Telerik, it's probably pretty decent.)
Given that Asp.net webforms works well for simple pages and there is no point in moving to MVC for the sake of it. I don't think a converter will do a good job, as:
- your pages are complex
- and/or you wish to do unit testing - so need to redesign
- or you are moving for the sake of it (way?)
精彩评论