是什么导致了“convertresourcescase”失败的意外

本文关键字:失败 意外 convertresourcescase 是什么 | 更新日期: 2023-09-27 18:08:09

有人也面临过这样的问题吗?当我将Xamarin升级到当前版本时发生了这种情况。已经在xamarin论坛查看了,还是零回复。谢谢。

C: '程序文件Android (x86) ' [' Xamarin ' ' Xamarin.Android.Common.targets (2, 2):错误MSB4018: "ConvertResourcesCases"任务意外失败。系统。UnauthorizedAccessException:对路径的访问'obj'Debug'res'values'strings.xml'被拒绝。在System.IO.__Error。WinIOError(Int32 errorCode, String maybeFullPath)
在System.IO.File。内部拷贝(String sourceFileName, StringdestFileName, Boolean overwrite, Boolean checkHost) atSystem.IO.File。复制(字符串sourceFileName,字符串destFileName,布尔覆盖)atXamarin.Android.Tools.Files。CopyIfChanged(字符串源,字符串目的地)Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources (ITaskItem条目,字典2 acwMap) at Xamarin.Android.Tasks.ConvertResourcesCases.FixupResources(Dictionary在Xamarin.Android.Tasks.ConvertResourcesCases.Execute()
在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute ()在Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext ()(MSB4018) (Gcm.Client)

是什么导致了“convertresourcescase”失败的意外

删除项目内obj文件夹的内容。清理构建。重建项目。

现在,一切都应该正常了。我曾经遇到过这个问题。这是由于在构建项目

时创建的文件中的冲突造成的。