开发者

Converting MVC2 aspx project to use MVC3 Razor view engine

I need advice.

We have a MVC2 aspx proj开发者_运维技巧ect that we would want to (nice to do, not need to do) upgrade so that we can use the Razor view engine instead of the aspx/webforms engine.

In total there is about 200aspx files that would need to be converted.

What`s your opinion of how much time it would take? And is it worth doing it?


If you do this manually, it takes long time to do this. But you can use MVC 3 Project Upgrade Tool - this will be a good choice


Telerik has conversion tool. It works quite well on simple cases, just does not help with converting master pages to layouts. I've used it to convert my project (several hundred views, up to ten master pages) - it took some time to figure out how to map master pages to layouts, but overall went quite well.
Is it worth it?
Well, it depends, mostly on how much is your project covered with tests. Razor syntax is much cleaner, I like layouts better than master pages. I always think, that migrating to new version has one serious advantage - it is a reason to review all your code, refactor things and so on, another serious advantage is to work with current technologies.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜