[英].Net Core project Nuget Packages Can not restore
I want to restore my Identity Server 4 project, after open VS2017 but when package manager try to restore references, it gets fail error every time. 我想在打开VS2017之后还原我的Identity Server 4项目,但是当程序包管理器尝试还原引用时,每次都会出现失败错误。
I use latest version of VS2017 and my core packages installed and updated on my pc. 我使用最新版本的VS2017,并且在我的PC上安装并更新了我的核心软件包。
Error The feed 'nuget.org [ https://api.nuget.org/v3/index.json] ' lists package 'Microsoft.AspNetCore.2.1.3' but multiple attempts to download the nupkg have failed. 错误提要'nuget.org [ https://api.nuget.org/v3/index.json] '列出了程序包'Microsoft.AspNetCore.2.1.3',但是多次下载nupkg的尝试均失败了。 The feed is either invalid or required packages were removed while the current operation was in progress.
提要无效,或者在当前操作进行过程中删除了必需的软件包。 Verify the package exists on the feed and try again.
确认Feed中存在该程序包,然后重试。 Unable to find package 'Microsoft.AspNetCore.2.1.3'.
找不到软件包“ Microsoft.AspNetCore.2.1.3”。
end of central directory record could not be found
找不到中央目录记录的末尾
According to the message in the error log "end of central directory record could not be found", you can try following troubleshootings to resolve this issue: 根据错误日志中的消息“找不到中央目录记录的结尾”,您可以尝试执行以下疑难解答来解决此问题:
nuget locals all -clear
. nuget locals all -clear
。 nuget.config
file in the location: C:\\Users\\leoliu\\AppData\\Roaming\\NuGet\\NuGet.Config
, then re-open the Visual Studio to restore nuget packages. nuget.config
文件: C:\\Users\\leoliu\\AppData\\Roaming\\NuGet\\NuGet.Config
,然后重新打开Visual Studio以还原nuget包。 Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.