Missing maui_colors.xml and maui_splash_image.xml

Viewed 668

I've been developing a .NET MAUI app on my Windows 11 machine which works perfectly.

When I try to compile and run it on a Mac, running the latest version of Visual Studio for Mac - 17.3 Preview build 1038, I get two errors -- see below:

Source file 'obj/Debug/net6.0-android/resizetizer/sp/maui_splash_image.xml' could not be found (XA2001)
Source file 'obj/Debug/net6.0-android/resizetizer/sp/maui_colors.xml' could not be found (XA2001)

enter image description here

Any idea what's causing this and how to fix it?

P.S. I started this project from scratch on my PC so it's not a conversion from Xamarin.

2 Answers

Cleaning and building the Solution (not the single project) fixed it for me.

enter image description here

Cleaning, and then building the solution then resulted in error code = "AMM000" on File "AndroidManifest.xml". I found virtually nothing on that code. Ultimately, I spent a few hours creating a new project and moved my code over to the new project, line-by-line.
Not a great bug. I believe all that I did was change my icon file, but I guess I'll rename my actual icon to the sample "bot" icon that comes in the sample project and leave it at that.

Related