【问题标题】:Xamarin.Forms Android System.ObjectModel could not be foundXamarin.Forms Android System.ObjectModel 找不到
【发布时间】:2017-06-05 04:16:30
【问题描述】:

我使用 Visual Studio 2017 创建了第一个 Xamarin.Forms 项目。

错误是The referenced component 'System.ObjectModel' could not be found.。 dll System.ObjectModel.dll 存在于 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades 中,但它在引用上显示黄色三角形。

替换为C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades 中的另一个dll 以删除黄色三角形。

但是编译的时候又报错了:

CS1703 具有相同标识的多个程序集已被 导入:'C:\Program Files (x86)\Reference 程序集\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ObjectModel.dll' 和 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.ObjectModel.dll'。 删除其中一个重复项 参考。 App2.Android C:\Users\xxx\documents\visual studio 2017\Projects\App2\App2\App2.Android\CSC 1 活动

有什么想法吗?

【问题讨论】:

  • 您可以在记事本中打开项目文件并删除其中一个无效引用。之后重新加载项目,

标签: c# xamarin.android visual-studio-2017


【解决方案1】:

已解决。

  • 删除了当前的 DLL
  • 通过 Nuget 重新安装包

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-03-01
    • 2017-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    • 2021-05-24
    • 1970-01-01
    相关资源
    最近更新 更多