Asp.Net MVC3到MVC4升级工具?

时间:2022-09-18 07:27:22

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

我知道手动指南从3升级到4,如下所示: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.

指南的细节各不相同,这清楚地标明了危险。有没有一个工具可以处理从MVC3项目到MVC4的过渡?这隐含地意味着从.Net 4迁移到.Net 4.5,这对于Microsoft在两个版本之间添加的所有命名空间重定向确实有一些重要影响。

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.

所以,一个经过测试的工具我可以指望不会犯一个愚蠢的错误,就像我在这里可能会有所帮助一样。那存在吗?有一个从MVC2到3的工具,所以没有找到3到4的一个让我感到惊讶。

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.

为什么我要升级的背景:我们在.Net 4.5 MVC4上有几个较新的项目,以及.Net 4 MVC3上的一个重要的旧项目(其中一些.Net 2和MVC 2混合在一起......)等等我们的共享图书馆向前推进了旧项目的挣扎。我们可以明显冻结上一次共享库的工作,或者分叉它们并维护2个版本......显然这些都不是很吸引人。我更愿意只更新旧项目中的工具集,并将所有内容置于奇偶校验中。

1 个解决方案

#1


37  

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

看看这个:http://www.dotnetexpertguide.com/2013/02/aspnet-mvc-auto-upgrade-mvc-3-to-mvc-4-application.html

It is a Nuget Package called UpgradeMvc3ToMvc4

它是一个名为UpgradeMvc3ToMvc4的Nuget包

#1


37  

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

看看这个:http://www.dotnetexpertguide.com/2013/02/aspnet-mvc-auto-upgrade-mvc-3-to-mvc-4-application.html

It is a Nuget Package called UpgradeMvc3ToMvc4

它是一个名为UpgradeMvc3ToMvc4的Nuget包