I want to convert my ASP.NET website running on .NET 4.8 to .NET 7.
Is there any option to directly migrate the complete application with making extra effort?
Or is there any option to share session between .NET 4.8 and .NET 7?
I want to convert my ASP.NET website running on .NET 4.8 to .NET 7.
Is there any option to directly migrate the complete application with making extra effort?
Or is there any option to share session between .NET 4.8 and .NET 7?
2
Answers
I believe your best option is Upgrade Assistant done by Microsoft.
Check also this blog post. If you want to do this incrementally, your best way to go is
Side-by-side incremental
. This will allow you to route traffic to old application for endpoints you didn’t migrate yet.Just to explain on this issue.
The upgrade assistant can be used with a web forms site.
The end result is no conversion actually occurs, but you do wind up with a site that runs under .net core.
The setup results in this:
So, what occurs is a .net core web site is placed in "front" of your asp.net webforms site. This setup THEN allows your developer(s) to move one page at a time from the asp.net webforms site over to the asp.net core site.
So, while no such code or design conversion occurs against the webforms site, it does give your developers "breathing" room and time to then start converting each asp.net webforms page to a .net core MVC or blazer syntax page. This of course is not an automated process, but will require you to re-develop the web page from scratch into the newer .net core MVC (or blazer) syntax pages. It is a hand code process and is certainly not any kind of automated conversion. However this approach does mean you have a .net core web site running, and in the mean time, you can run + use your existing web site despite the front facing web site being a .net core one.
How this works it outlined here:
https://learn.microsoft.com/en-us/aspnet/core/migration/inc/start?view=aspnetcore-7.0
So, the migration assistant will not convert your code, but it can move the asp.net webforms application to run "behind" a .net core site. You will have a working webforms site, but now at your leisure and over time can begin the task of re-writing each web form page into the newer .net core format.