【发布时间】:2022-09-27 15:31:34
【问题描述】:
我创建了一个示例 Xamarin 项目并尝试使用这些步骤将其转换为 Maui 项目(https://github.com/dotnet/maui/wiki/Migrating-from-Xamarin.Forms-(Preview)),但它显示错误:-
error CS0579: Duplicate \'global::Android.Runtime.Resource DesignerAttribute\' attribute
-
是的,我遇到了同样的错误。还没找到解决办法...
-
请edit您的问题包括您的错误(和代码,如果有的话)文本而不是截图。堆栈溢出图像不应用于文本,请参阅Discourage screenshots of code and/or errors 和Why not upload images of code on SO when asking a question 了解原因。有关格式化的说明,请参阅How do I format my code blocks?. minimal reproducible example 显示您尝试过的无效方法将最大限度地提高您获得帮助的机会。见How to Ask。
-
在 Xamarin 或 MAUI 中混合托管和非托管设计器将导致此 [程序集:global::Android.Runtime.ResourceDesignerAttribute(\"MyApp.Resource\", IsApplication=true)]
标签: android xamarin xamarin.android