Migration from Asp.Net MVC 2.0 to 5.0

I am working for one of my project and for the same I want to Migrate from Asp.Net MVC 2.0 to 5.0 .  Please let me know the best approach for Modifying the code base to support .NET 4.5 and ASP.NET MVC
yabhijitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MlandaTCommented:
With each release, it seems there are things that were added, changed or removed. The cleanest approach would be to start an MVC5 project and start moving your code into this new project (this is what I would do - unless of course your project is really massive).

Depending on the complexity of your project, you might find it better to upgrade one version up each time and using provided upgrade tools (such as this one http://blogs.msdn.com/b/marcinon/archive/2011/01/13/mvc-3-project-upgrade-tool.aspx for moving from 2 to 3). Or manually upgrading by going through the upgrade guidelines with each framework version (example get the document
ASP.NET-MVC-3-Tools-Update-RTM-Release-Notes.doc from http://www.microsoft.com/en-us/download/details.aspx?id=1491)
1
Pravin AsarPrincipal Systems EngineerCommented:
I  would highly recommend you to create a new empty MVC 5 project, and move all your files there from old MVC 2 project. If you just try to update DLLs its very hard be sure if you updated all DLLs, proj file, nugets, or at least little bit more work by copying files is well worth it. Problem is that VS2013 is not compatible with old version of MVC framework. But, if you really want to open MVC 2 solution in VS2013, you can try few things. Before doing so, save a copy of current project, in case it gets messed up.
With each version of visual studio, GUID changes,DLLs change.

Best of luck
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Justin RogerWeb designerCommented:
I completely agree with Mr. Praveen create a new empty MVC 5 project, and move all your files there from the old MVC 2 project, but firstly I suggest you to create a backup and don't try to change your .dll file. There is a lot of difference between MVC 5 and MVC 2 like .net framework and features. If you want to update your .dll file then it's very difficult.
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.