缺少 maui_colors.xml 和 maui_splash_image.xml

Sam*_*Sam 11 xamarin xamarin.forms maui .net-maui

我一直在我的 Windows 11 计算机上开发一个 .NET MAUI 应用程序,该应用程序运行良好。

当我尝试在 Mac 上编译并运行它并运行最新版本的 Visual Studio for Mac - 17.3 Preview build 1038 时,出现两个错误 - 如下所示:

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)
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

知道是什么原因造成的以及如何解决它吗?

PS 我在我的 PC 上从头开始这个项目,所以它不是从 Xamarin 进行的转换。

Mon*_*sha 16

清理和构建解决方案(不是单个项目)为我解决了这个问题。

更新重建也有效。有时你必须这样做两次才能工作。

在此输入图像描述