MAUI Entry Point - MauiProgram.cs [Answered]
Typically when creating a new application, be it Console, WPF, WinForms, or Web, the main entry point of the application is
Program.Main()
. I created a new Maui app to find that the main entry point appears to be MauiProgram.CreateMauiApp()
. Why is there a difference in the entry point of the application? Was it intended to mirror the Startup.cs
file from asp.net core apps and they just hid Program.cs
from me?2 Replies
Ah, I see how they're doing this now. The Platforms directory has several entry points, this just provides a common builder.
✅ This post has been marked as answered!