简体   繁体   English

无法安装Nuget包“ RestSharp”

[英]Can't install Nuget package “RestSharp”

I have to install the RestSharp NuGet package. 我必须安装RestSharp NuGet软件包。 But everytime i try to, these error shows up: 但是每次我尝试时,都会出现这些错误:

Installing via Console: 通过控制台安装:

通过控制台安装

Or installing via the NuGet UI: 或通过NuGet UI安装:

通过UI安装

I need RestSharp for openALPR API. 我需要RestSharp用于openALPR API。

Thanks for reading my question and maybe even anwsering it! 感谢您阅读我的问题,甚至烦恼它!

With best regards Fabian Maurhart 此致Fabian Maurhart

I don't think that this is an error specific to the Package... looks like you could be running a buggy version of NuGet or have a broken cache, found this as a reference, maybe the hints will help, even if this is a bit older. 我不认为这是特定于Package的错误...看起来您可能正在运行NuGet的错误版本或缓存已损坏,可以将作为参考,即使这是提示,也可能会有所帮助有点老

Excerpt 摘抄

Downloads: 资料下载:

https://dist.nuget.org/win-x86-commandline/latest/nuget.exe (or check here: https://dist.nuget.org/index.html ) https://dist.nuget.org/win-x86-commandline/latest/nuget.exe (或在此处查看: https//dist.nuget.org/index.html

You can run this from anywhere using command prompt or powershell. 您可以使用命令提示符或Powershell在任何地方运行此命令。

Then you can run the following commands: 然后,您可以运行以下命令:

nuget.exe locals -clear global-packages
nuget.exe locals -clear packages-cache
nuget.exe locals -clear http-cache

Thanks Seeker1437 谢谢Seeker1437

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM