How to migrate out of ASP NET Webforms?

How to migrate out of ASP NET Webforms?

In a previous article we discussed how companies are losing thousands of dollars by been relcutant to migrate out of ASP .NET Webforms, today, we are going to discuss a little bit how to do so.

I have worked in multiple big migration projects, and I am frequently designing my own projects and updating them to the latest versions and frameworks, so I have very good experience on some of the processes.

Note: You can help funding my Open Source projects by becoming a Github Sponsor here https://github.com/sponsors/efonsecab

There are at least two approaches:

  • Migrate your project in the same solution in a different branch in the source code
  • Create a new project from scratch and migrate the converted functionality

Someone a couple of years ago mentioned to me that they do a partial migration using the power of conditional compilation, which is actually a good idea if you know how to use it and have a good design of the migration steps prior to doing so.

Migrating your project in the same solution usually means for some time, hours, days, even weeks, the code may not compile and a lot of code should be commented while the functionality is converted. The downside of this form of migration is that you would usually try to keep everything the same, meaning there is a lot of bad code you wont fix.

Migrating your project to a new solution, is better since usually the initial solution is clean, and you can start cleaning up your original code as you move it. One of the downsides is that this form of migration may be slower. Some would call this form of migration a re-write instead, they are in part correct.

For doing the first form of migration there are currently some tools that help you speed up a little bit the process, one tool is named CoreForms, it's basically a tool to migrate your WebForms systems to .NET Core. This tool basically tries to allow you to keep using your current WebForms implementation, on .NET Core, of course, it has is limitations.

Another tool which allows you to migrate out of Webforms is the AWS Porting Assitant for .NET, and one of the great news, it converts your Webforms code into Blazor!

No matter the form of migration that you use, there would be lots of manual process involved, remember that ASP .NET Webforms is extremely old and has been recommended for years to stop been used in pro of the newer approaches like ASP .NET MVC, Razor Pages, and nowadays Blazor.


How many projects have you migrated out of ASP .NET Webforms?

要查看或添加评论,请登录

Eduardo Fonseca的更多文章

  • Blazor How-To: Display Toast Notifications

    Blazor How-To: Display Toast Notifications

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

    3 条评论
  • How to use Instagram APIs with C# and .NET - Part I

    How to use Instagram APIs with C# and .NET - Part I

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

    3 条评论
  • Blazor How-To: Dynamically Set Page Render Mode

    Blazor How-To: Dynamically Set Page Render Mode

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Features in the FairPlay platform

    Features in the FairPlay platform

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Blazor How-To: Creating a Blog platform - Part 1

    Blazor How-To: Creating a Blog platform - Part 1

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Progress Update on The FairPlay Platform

    Progress Update on The FairPlay Platform

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How can Software Developers fight boredom

    How can Software Developers fight boredom

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • Using Artificial Intelligence to Improve Data Validations

    Using Artificial Intelligence to Improve Data Validations

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How to Create Image Shares for LinkedIn Using C#

    How to Create Image Shares for LinkedIn Using C#

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

  • How to overcome legacy-fatigue?

    How to overcome legacy-fatigue?

    Hello, I hope you are doing great! Thanks for reading. Remember to share the article with your network and invite more…

社区洞察

其他会员也浏览了