See my comment above VS and Maui do not play well together yet.
Why is Maui listed as GA. Just opened VS 2022 and what was working last evening is now toast.
I try to compile and this is the result:
Severity Code Description Project File Line Suppression State
Error IDE1100 Error reading content of source file 'C:\Visual Stuido Stuff\Maui\DXMauiApp2\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs' -- 'Could not find file 'C:\Visual Stuido Stuff\Maui\DXMauiApp2\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs'.'. DXMauiApp2 (net6.0-android) C:\Visual Stuido Stuff\Maui\DXMauiApp2\obj\Debug\net6.0-android.NETCoreApp,Version=v6.0.AssemblyAttributes.cs 1 Active
now
So since the file exists I have no idea what is going on except that my project is now toast. This because I shut down the workstation and now I am seeing "
Severity Code Description Project File Line Suppression State
Error : XamlC error XFC0000 : Cannot resolve type "Application". DXMauiApp2 C:\Visual Stuido Stuff\Maui\DXMauiApp2\App.xaml 1
It gets better (not really) I think that the project file is corrupt (it has happened too many times for a GA product) and I notice that the file exists in the folder but not in the solution. I do another build and it says restoring that file. I open the file with notepad so it really does exist but when I do a search in VS in the Solution Explorer it does not.
Confusion reigns here