从 MVC2 迁移到 MVC3/Razor 的策略
我有一个相当大的 MVC2 站点,并且想开始合并 MVC3 以利用 Razor 视图引擎。我看过 升级工具,但这似乎专注于转换我的项目(已经完成),而不是我的页面。 Telerik 转换工具很有趣,但迫使人们大规模转向 MVC3。我更喜欢采取交错的方式,即在 Razor 中开发新页面,并在必要/时间允许时转换旧页面。
那么,从MVC2迁移到MVC3有哪些策略呢?如何混合这两者——复制母版页/布局并使用它直到完成转换?
I have a fairly large MVC2 site and would like to start incorporating MVC3 to take advantage of the Razor view engine. I've seen the Upgrade Tool, but that seems to focus on converting my project (already done), not my pages. The Telerik conversion tool is interesting, but forces a wholesale move to MVC3. I would prefer a staggered move, where new pages are developed in Razor and old pages are converted when necessary / as time permits.
So, what strategies are there to migrate from MVC2 to MVC3? How do you mix the two -- duplicate your Master Pages/Layouts and live with it till you're done converting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论