❔ 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
You uh.. didn't specify what version of ASP.NET you are migrating from?
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 onesorry, razor pages with .NET Framework 4.8
ASP.NET MVC 4.5
So you want to migrate from ASP.NET MVC 4.5 to .NET Fx 4.8 Razor Pages?
migrate from ASP.NET MVC 4.5 to ASP.NET Core .NET 7
Learn to upgrade from ASP.NET MVC and Web API to ASP.NET Core MVC
Learn how to upgrade an ASP.NET MVC Framework or Web API project to ASP.NET Core MVC
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 gothank you very much @reflectronic !
will test it tomorrow
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.