Change MainWindow.cs to MauiProgram.cs#28751
Conversation
Use the correct filename that contains the static `CreateMauiApp` method.
|
Thanks @thomasclaudiushuber ... This is probably a recent change that I didn't hear about. Do you know when they made the change? |
|
Hi @guardrex, in my opinion it's not a recent change, it has always been that way for .NET MAUI apps. There was even never a MainWindow.cs file in MAUI. MAUI contains a MainPage.cs, but not a MainWindow.cs. But the code with the static Here is actually the anatomy of a .NET MAUI app that shows also the MauiProgram.cs file: https://learn.microsoft.com/en-us/dotnet/maui/xaml/fundamentals/get-started?view=net-maui-6.0 |
|
Yes, I think you're correct. The rest of the docs use the correct filename. This is the only doc that seems to have a gremlin 😈 in it. It came in on this PR ... #25791 ... and that was derived from PU notes. I think that when I was writing it up I just flat-out had the wrong filename in my head 🙈. It was reviewed, but it wasn't caught by Javier at the time. That's how the sneaky ones 😈😈😈 really do well ... I put them in AND they escape review. Stand-by for a sec ... I just need to make sure that they're all out of this before we merge it. |
guardrex
left a comment
There was a problem hiding this comment.
Thanks, @thomasclaudiushuber! 🚀 ... I think that gets them all.
|
Thank you @guardrex, looks good now. :)👍 ✨ |
Use the correct filename that contains the static
CreateMauiAppmethod.Internal previews