Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating from Asp.net MVC2 to MVC4

Tags:

asp.net-mvc

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.

like image 581
vik Avatar asked Aug 24 '12 10:08

vik


2 Answers

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. 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.

like image 128
mezoid Avatar answered Nov 13 '22 06:11

mezoid


Unfortunately there isn't a direct path from MVC 2 to MVC 4. The intermediate step to MVC 3 needs to be done.

MVC 2 to MVC 3 then MVC 3 to MVC 4

like image 31
MushinNoShin Avatar answered Nov 13 '22 05:11

MushinNoShin