Hi @Sourabh Agrawal ,
You can refer to the documentation for Visual Studio Project Migration and Upgrade Reference.
https://learn.microsoft.com/en-us/visualstudio/porting/port-migrate-and-upgrade-visual-studio-projects?view=vs-2022
Upgrading MVC versions:
For information about how to automatically upgrade from MVC 2 to MVC 3, see ASP.NET MVC 3 Application Upgrader.
For information about how to manually upgrade from MVC 2 to MVC 3, see Upgrading an ASP.NET MVC 2 Project to ASP.NET MVC 3 Tools Update.
For information about how to manually upgrade from MVC3 to MVC 4, see Upgrading an ASP.NET MVC 3 Project to ASP.NET MVC 4. If your project targets .NET Framework 3.5 SP1, you must retarget it to use .NET Framework 4.
For information about how to manually upgrade from MVC 4 to MVC 5, see How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2.
I suggest you create a new MVC5 application, reference MVC via Nuget etc and extract the code as needed. This will give you a chance to rebuild things and learn newer methods that you might otherwise struggle with MVC configuration and references.
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.