Xamarin构建错误 "XamlCTask "任务被声明或使用不正确。

问题描述 投票:1回答:1

我从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。到目前为止,我已经尝试了什么。

  • 清洁的解决方案
  • 重建解决方案

有什么办法可以解决这个错误吗?

xamarin.forms visual-studio-2017
1个回答
0
投票

关闭你的解决方案,并删除 "XamlCTask "任务。packages 文件夹。这是一个已知的 "旧 "解决方案的问题修复。

© www.soinside.com 2019 - 2024. All rights reserved.