Asp.Net MVC3 to MVC4 Upgrade Tool?

安稳与你 提交于 2019-12-18 11:18:51

问题


I'm aware of manual guides to upgrade from 3 to 4 like this one: http://www.dotnetexpertguide.com/2011/12/upgrade-aspnet-mvc-3-project-to-mvc-4.html

The guides vary in their details which clearly signals danger. Is there a tool that handles the transition from an MVC3 project to MVC4? This would implicitly mean migrating from .Net 4 to .Net 4.5, which does have some significant implications in terms of all the namespace redirects Microsoft added between the 2 versions.

I'm also aware of manual guides that basically say to give up on upgrading and instead just create a new project and port things over piece by piece into the new project. This has a lot of obvious opportunities for small mistakes to create big problems.

So, a tool that's been tested I can count on to not make a silly mistake like I might would really help here. Does that exist? There's a tool to get from MVC2 to 3, so not finding one for 3 to 4 surprised me.

Background for why I'd like to upgrade: we have several newer projects on .Net 4.5 MVC4, and an important older project on .Net 4 MVC3 (with some .Net 2 and MVC 2 mixed in...), and the more our shared libraries move forward the more that old project struggles. We can freeze the last working on the shared libraries obviously, or fork them and maintain 2 versions... obviously neither of these is very appealing. I'd prefer to just update the toolset on the older project and bring everything into parity.


回答1:


An auto-upgrade now exists.

Check this out: http://www.dotnetexpertguide.com/2013/02/aspnet-mvc-auto-upgrade-mvc-3-to-mvc-4-application.html

It is a Nuget Package called UpgradeMvc3ToMvc4



来源:https://stackoverflow.com/questions/12655808/asp-net-mvc3-to-mvc4-upgrade-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!