C
C#8mo ago
PortiXs

❔ Best way to migrate ASP.NET MVC to .NET 7

I would like to know if anyone has already migrated an ASP.NET MVC app to .NET 7 or if anyone knows the best way to approach the migration. Thank you in advance!
9 Replies
Pobiega
Pobiega8mo ago
You uh.. didn't specify what version of ASP.NET you are migrating from?
Angius
Angius8mo ago
Upgrade Assitant? That said, migrating .aspx to .cshtml alone won't be smooth Far as the process itself goes... you can either migrate to .NET 7 and push it all to prod at once Or you can do a piecemeal upgrade, with some reverse proxy in the front that would redirect the routes not implemented in the migrated project to the old one
PortiXs
PortiXs8mo ago
sorry, razor pages with .NET Framework 4.8 ASP.NET MVC 4.5
Angius
Angius8mo ago
So you want to migrate from ASP.NET MVC 4.5 to .NET Fx 4.8 Razor Pages?
PortiXs
PortiXs8mo ago
migrate from ASP.NET MVC 4.5 to ASP.NET Core .NET 7
reflectronic
reflectronic8mo ago
there are packages (which the upgrade assistant will install) to help smooth over the migration by letting you keep existing System.Web code for things it can’t migrate, it creates a reverse proxy that forwards those endpoints to your ASP.NET 4.x app that might be a little overkill depending on how complex this app is, you may just want to do it in one go
PortiXs
PortiXs8mo ago
thank you very much @reflectronic ! will test it tomorrow
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.