从Asp.net MVC2迁移到MVC4 [英] Migrating from Asp.net MVC2 to MVC4

查看:174
本文介绍了从Asp.net MVC2迁移到MVC4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将MVC2网站转换为MVC4.我知道有一些工具可以帮助从MV2转换为MVC3,但是我找不到从MVC2转换为MVC4所需的任何工具或步骤.请为我指出一些文章/博客,该文章/博客可以为我提供更多有关此过程的信息.

I want to convert MVC2 web site to MVC4. I know there are tools to help with conversion from MV2 to MVC3 but I cannot find any tools or steps needed to convert from MVC2 to MVC4. Please point me to some article/blog which can provide me some more information to help with this process.

推荐答案

现在看来有一个发布到类似问题的解决方案表示存在两个可以

Looks like there is now a solution posted to a similar question that indicates that there exist two packages that can migrate from MVC 2 to MVC 3 and then from MVC 3 to MVC 4.

根据我最近进行相同升级的经验,这是您需要的:

Here is what you'll need based on my experience doing the same upgrade recently:

  1. 确保已将解决方案从VS2008升级到VS2010
  2. ASP.NET MVC 3应用程序升级程序-用于升级MVC2的独立程序包- > MVC3
  3. UpgradeMvc3ToMvc4 -用于从MVC3-> MVC4升级的nuget程序包
  1. Ensure that you have upgraded your solution from VS2008 to VS2010
  2. ASP.NET MVC 3 Application Upgrader - A Standalone package for upgrading MVC2 -> MVC3
  3. UpgradeMvc3ToMvc4 - A nuget package for upgrading from MVC3 -> MVC4

最近使用了这两种方法之后,我可以为它们提供担保,因为它们对我来说非常有效.

Having used both of these recently I can vouch for them in that they worked very well for me.

这篇关于从Asp.net MVC2迁移到MVC4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆