【问题标题】:Mono.Zeroconf NuGet package will not install in XamarinMono.Zeroconf NuGet 包不会安装在 Xamarin 中
【发布时间】:2017-09-03 00:59:44
【问题描述】:

我在 Mac 上使用 Xamarin 6.3。我对 Xamarin 很陌生。

我有一个打开的项目。我选择“项目”->“添加 NeGet 项目...”

我在搜索框中输入“Mono”,然后选中 Mono.Zeroconf 旁边的框,然后选择“添加包”

有几行输出,但最后一行是:

Could not install package 'Mono.Zeroconf 0.9.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.4', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

我尝试过更改我的android包的版本,但每次都失败。

提前感谢您的帮助

【问题讨论】:

    标签: android macos xamarin nuget


    【解决方案1】:

    这个项目不支持Xamarin.Android,因为它只包含桌面库.NET 2.0。此库需要支持 MonoAndroid 目标或 PCL/dotnet 标准目标。

    遗憾的是,这个库自 2011 年以来就没有更新过!因此,除非将来更新,否则它不太可能支持Xamarin.Android

    来源:

    https://github.com/mono/Mono.Zeroconf

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-21
      • 1970-01-01
      • 1970-01-01
      • 2016-06-25
      相关资源
      最近更新 更多