Is there any way to convert a WPF desktop application project to a web application with minimal code rewriting?

Mojtaba_Hakim 281 Reputation points

I have a C# WPF project that works with a SQL Server database on my windows, I searched a lot to see if there is a way to convert my project code into a web usable project with minimal code rewriting, but I couldn't find anything useful.

Now I doubt what exactly is the best way? If I have to rewrite my entire project from scratch, then I should choose a good path and technology (like cross-platform).

According to the things I saw, I doubt which benefit:

  • WPF .NET-Framework | .NET-Core
  • UWP
  • WinUI and Uno Platform
  • Microsoft MAUI

which one is the best way ?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,708 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,404 questions
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,176 questions
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
789 questions
{count} votes