Xamarin 组件说 "Already Installed" 而实际上不是

Xamarin Component says "Already Installed" and its really not

今天遇到这个错误,觉得自问自答很有用。

您的组件列表包含给定的 Xamarin 组件,但是当您必须添加它时,您会得到这种类型的屏幕 -

那么,如果发生这种情况,我该如何清理系统中的组件以便正确安装它们?

答案差不多就在这个post-

https://kb.xamarin.com/customer/portal/articles/1865772-where-are-the-components-stored-on-my-machine

但是除了清理你的

  • 根目录中的本地项目 Components 文件夹
  • ~/Library/Caches/Xamarin/Components 在 Mac

你还需要清空

  • ~/Library/Caches/Xamarin/ComponentInfo

我似乎不需要清理 Windows Machine,即使我使用的是 Visual Studio,但清理 windows 文件夹中的 link 以上,如果你需要的话。