There are 3 issues at play here:
1. XAML files placed inside C# files, leading to dotnet rules not applying to C# files.
2. Code style analyzer not matching the compiler's version.
3. Unrelated but warning for missing Appx bundling platforms appears for a sample UWP project.
This patch fixes all of that.