我有一个针对Windows4.5,.Net 4+,Windows Phone 7.5+,windows商店应用程序的.Net,Mono Android和MonoTouch的PCL
我正在尝试通过nuget安装Simple.OData,并得到以下错误。我尝试了许多不同的组合,但似乎没有任何组合能够拉下库。我的主要目标是使用MVVMCross和Odata服务为安卓和触摸进行开发。
PM> Install-Package Simple.OData.Client
Installing 'Simple.OData.Client 0.16.0'.
Successfully installed 'Simple.OData.Client 0.16.0'.
Adding 'Simple.OData.Client 0.16.0' to EMC.Mobile.Core.
Uninstalling 'Simple.OData.Client 0.16.0'.
Successfully uninstalled 'Simple.OData.Client 0.16.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'Simple.OData.Client 0.16.0'. You are trying to install this package into a project that targets
'portable-win+net403+sl40+wp', 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.
At line:1 char:1
+ Install-Package Simple.OData.Client
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand发布于 2013-08-11 08:33:27
看看https://www.nuget.org/packages/Simple.OData.Client,它说这个包只支持Windows phone8和更高版本--所以我猜你的问题是Windows phone7.5不支持。
发布于 2013-08-28 18:55:03
我只想让你知道,Simple.OData.Client有了一个新版本(0.17),它的变化会影响到单点触摸/单点触控。
但是,正如Stuart和Daniel所指出的,您必须选择兼容的PCL配置文件。请确保您选择的配置文件未选择Silverlight和Windows Phone的早期版本。
如果你需要更多的帮助,请告诉我。
https://stackoverflow.com/questions/18164765
复制相似问题