使用 NuGet 将 Xamarin.Auth
安装到我的项目时,出现此错误:
Could not install package 'Validation 2.0.4.14103'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', 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.
最佳答案
这是因为 NuGet 依赖行为设置为“最低”并且 Validation 2.0.4.14103
与 Xamarin.iOS,Version=v1.0
不兼容p>
解决方法如下:
首先安装
Validation
NuGet 包,使用最新版本2.3.7
。然后安装
Xamarin.Auth
,它应该可以正常工作,没有错误。
关于c# - 从 NuGet 安装 Xamarin.Auth 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40207210/