无法将 Microsoft.ProjectOxford.Face NuGet 安装到 Xamarin Studio iOS 项目中
Can't install Microsoft.ProjectOxford.Face NuGet into Xamarin Studio iOS project
我尝试了很多,但我无法将 Microsoft.ProjectOxford.Face NuGet 安装到 Xamarin Studio iOS 项目中。
我收到这个错误:
Could not install package 'Microsoft.ProjectOxford.Face 1.2.5.1'. 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.
我尝试更新所有包,还有 Xamarin,但问题仍然存在。只有这个包不起作用 - 其他如 Newtonsoft.Json、Mircosoft.Net.HTTP 和许多其他已正确安装。我尝试先安装 Microsoft.BCL 也安装 Microsoft.BCL.Build,但它也不起作用。
也许您有任何想法,我该怎么做才能让它发挥作用?
不幸的是,这是 Microsoft.ProjectOxford.Face 1.2.5.1 NuGet 包本身的问题。虽然它有一个可移植的 class 库 (PCL) 文件夹,但它没有映射到有效的 PCL 配置文件:
portable-net45+wp80+win8+wpa81+aspnetcore50
如果该文件夹的 aspnetcore50 部分被删除,那么它将安装到 Xamarin.iOS。事实上,NuGet 将不允许您安装它。
您唯一能做的就是解压缩 NuGet 包并尝试直接使用程序集。 NuGet 将不允许您安装它。
我相信有更新 NuGet 包的计划来解决这个问题,但那还没有发生。
我尝试了很多,但我无法将 Microsoft.ProjectOxford.Face NuGet 安装到 Xamarin Studio iOS 项目中。
我收到这个错误:
Could not install package 'Microsoft.ProjectOxford.Face 1.2.5.1'. 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.
我尝试更新所有包,还有 Xamarin,但问题仍然存在。只有这个包不起作用 - 其他如 Newtonsoft.Json、Mircosoft.Net.HTTP 和许多其他已正确安装。我尝试先安装 Microsoft.BCL 也安装 Microsoft.BCL.Build,但它也不起作用。
也许您有任何想法,我该怎么做才能让它发挥作用?
不幸的是,这是 Microsoft.ProjectOxford.Face 1.2.5.1 NuGet 包本身的问题。虽然它有一个可移植的 class 库 (PCL) 文件夹,但它没有映射到有效的 PCL 配置文件:
portable-net45+wp80+win8+wpa81+aspnetcore50
如果该文件夹的 aspnetcore50 部分被删除,那么它将安装到 Xamarin.iOS。事实上,NuGet 将不允许您安装它。
您唯一能做的就是解压缩 NuGet 包并尝试直接使用程序集。 NuGet 将不允许您安装它。
我相信有更新 NuGet 包的计划来解决这个问题,但那还没有发生。