WinUI C#, I noticed that the application runs even if the file name for App.xaml is written in lowercase as app.xaml. Are there any technical reasons in C# or WinUI 3 that recommend using an uppercase “A” for App.xaml?
Additionally, for other files and classes, is it technically beneficial? What are the implications of deviating from this convention, such as using snake_case for file names instead?
Here's what I confirmed about App.xaml and App.xaml.cs:
WORKS (COMPILES)
DOES NOT WORK (COMPILE)
Since you get the following error message, it seems that the file name is expected to be App.xaml and App.xaml.cs.
CS5001: Program does not contain a static 'Main' method suitable for an entry point
For pages or user controls, it seems to be working even if the file name doesn't match.
But as it's mentioned in the comments, I wouldn't do that and keep things consistent.