【发布时间】:2017-12-05 10:37:30
【问题描述】:
我试图在我的 C# Visual-Studio 2013 项目中使用 RestSharp 在给定的 URL 上发布数据。当我尝试通过 NuGet 安装软件包时,出现以下错误:
Installing 'RestSharp 106.1.0'.
Successfully installed 'RestSharp 106.1.0'.
Adding 'RestSharp 106.1.0' to WebApplicationJson.
Uninstalling 'RestSharp 106.1.0'.
Successfully uninstalled 'RestSharp 106.1.0'.
Install failed. Rolling back...
Could not install package 'RestSharp 106.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', 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.
据我在GitHub 中读到的,这主要是.NetPortable 框架的问题,所以我没有想法。我也尝试将我的框架版本更改为 3.5,但仍然是同样的错误。
有没有人遇到过类似的问题?
如果您需要更多信息,请发表评论。
【问题讨论】:
标签: c# visual-studio-2013 restsharp