Xamarin 构建错误 "XamlCTask" 任务已声明或使用不正确
Xamarin build Error The "XamlCTask" task has been declared or used incorrectly
我从 LinkedIn Learning 下载了一些练习文件。我正在尝试从下载的文件构建项目,但收到此错误消息:
Error The "XamlCTask" task has been declared or used incorrectly, or failed during construction.
Check the spelling of the task name and the assembly name.
我不知道它在说什么。它也没有告诉我很多关于错误发生的地方,比如文件名或代码行,所以这不是很有帮助。我唯一需要做的就是它在共享项目中。我还尝试在整个解决方案中搜索文本 "XamlCTask",但返回 0 个结果。到目前为止我尝试了什么:
- 清洁溶液
- 重建解决方案
关于如何解决此错误的任何想法?
关闭您的解决方案并删除 packages
文件夹。这是一个已知的 issue/fix 和 "older" 解决方案。
我从 LinkedIn Learning 下载了一些练习文件。我正在尝试从下载的文件构建项目,但收到此错误消息:
Error The "XamlCTask" task has been declared or used incorrectly, or failed during construction.
Check the spelling of the task name and the assembly name.
我不知道它在说什么。它也没有告诉我很多关于错误发生的地方,比如文件名或代码行,所以这不是很有帮助。我唯一需要做的就是它在共享项目中。我还尝试在整个解决方案中搜索文本 "XamlCTask",但返回 0 个结果。到目前为止我尝试了什么:
- 清洁溶液
- 重建解决方案
关于如何解决此错误的任何想法?
关闭您的解决方案并删除 packages
文件夹。这是一个已知的 issue/fix 和 "older" 解决方案。