首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法降级RestSharp

无法降级RestSharp
EN

Stack Overflow用户
提问于 2016-07-21 03:33:48
回答 1查看 206关注 0票数 0

尝试将RestSharp从105.2.3降级到105.1.0,但失败了。继续使用最新版本可以很好地工作,安装也很好。

Install-Package RestSharp -Version 105.1.0

代码语言:javascript
复制
Attempting to gather dependency information for package 'RestSharp.105.1.0' with respect to project 'project.iOS', targeting 'Xamarin.iOS,Version=v1.0'
Attempting to resolve dependencies for package 'RestSharp.105.1.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'RestSharp.105.1.0'
Resolved actions to install package 'RestSharp.105.1.0'
Install failed. Rolling back...
Package 'RestSharp.105.1.0' does not exist in project 'project.iOS'
Package 'RestSharp.105.1.0' does not exist in folder 'C:\Users\....project\packages'
Install-Package : Could not install package 'RestSharp 105.1.0'. 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.
At line:1 char:1
+ Install-Package RestSharp -Version 105.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package RestSharp

代码语言:javascript
复制
Attempting to gather dependency information for package 'RestSharp.105.2.3' with respect to project 'project.iOS', targeting 'Xamarin.iOS,Version=v1.0'
Attempting to resolve dependencies for package 'RestSharp.105.2.3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'RestSharp.105.2.3'
Resolved actions to install package 'RestSharp.105.2.3'
Package 'RestSharp.105.2.3' already exists in folder 'C:\Users\...\project\packages'
Added package 'RestSharp.105.2.3' to 'packages.config'
Successfully installed 'RestSharp 105.2.3' to project.iOS
EN

回答 1

Stack Overflow用户

发布于 2016-07-21 03:38:13

如果您查看NuGet包,答案将非常清楚。

https://www.nuget.org/packages/RestSharp/105.1.0

解压缩.nupkg并转到lib文件夹

您将看到此处允许的各个目标。请注意,在105.1.0 NuGet包中没有针对Xamarin.iOS10MonoTouch10 anywhere的目标。

但是,如果您对

https://www.nuget.org/packages/RestSharp/105.2.3

您将看到有针对Xamarin.iOS10MonoTouch10的目标。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38489340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档