c# - 从 NuGet 安装 Xamarin.Auth 时出错

标签 c# ios xamarin xamarin.ios xamarin.forms

使用 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.14103Xamarin.iOS,Version=v1.0 不兼容p>

解决方法如下:

  1. 首先安装 Validation NuGet 包,使用最新版本 2.3.7

  2. 然后安装 Xamarin.Auth,它应该可以正常工作,没有错误。

关于c# - 从 NuGet 安装 Xamarin.Auth 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40207210/

相关文章:

c# - 有没有办法通过 .NET 中的反射调用显式实现的方法/属性?

ios - 如何为分组样式 TableView 的给定部分设置固定高度?

iphone - 图像旋转到左侧90度电子邮件附件iPhone

c# - Prism 形式 : Application windows are expected to have a root VC

c# - Xamarin 中的 SyndicationFeed 类

c# - visual studio 提供将 c# 中的表达式主体转换为方法 : IDE0022 的 block 主体

c# - 使用 aff 文件时出现 System.EntryPointNotFoundException

ios - 签到时facebook ios sdk自动选择地点?

image - 在 Xamarin.Forms 中显示框架内图像的一部分

c# - C# 中的字符串连接与 interned 字符串