C
C#2y ago
Foxtrek_64

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
Foxtrek_64
Foxtrek_642y ago
Ah, I see how they're doing this now. The Platforms directory has several entry points, this just provides a common builder.
Accord
Accord2y ago
✅ This post has been marked as answered!