我在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软件包的版本,但每一个都会导致失败。

在此先感谢您的协助

最佳答案

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

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

资源:

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

10-04 23:09
查看更多