检索***的软件包元数据时发生错误 [英] An error occurred while retrieving package metadata for ***

查看:417
本文介绍了检索***的软件包元数据时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这已经被问过很多次了.解决方案(对我有用)是从packages.config文件(足够)和packages文件夹中删除***软件包.

This has been asked many times before. The solution (which works for me) is to delete the *** package(s) from the packages.config file (this is enough), and from the packages folder.

这对我来说是一个糟糕的解决方案,因为每次我要安装一些nuget软件包时都必须重复执行.罪魁祸首的软件包各不相同,但每次都趋向于是相同的软件包(Newtonsoft.Json/NETStandard.Library等...),直到我删除所有软件包并尝试重新安装它们为止(这有时会改变罪魁祸首的软件包) .

This is a bad solution for me because it has to be repeated every time I want to install some nuget package. The culprit package varies, but it tends to be the same package(s) every time (Newtonsoft.Json/NETStandard.Library etc...), until I delete all packages and try to reinstall them (this sometimes changes the culprit package).

有解决方案吗?必须一直进行此手动修复令人不安.而且我认为它指出了一些我想在我的项目中修正的主要潜在问题.

Is there a solution for this? It is nerve-wrecking to have to do this manual fix all the time. And I think it points to some major underlying problem that I would like to amend in my project.

推荐答案

使用以下步骤将Visual Studio程序包管理器更新到最新版本,并且持续存在的问题将消失.

Update the Visual Studio Package Manager to the latest version using the below steps and the ongoing issue will disappear.

  1. 在Visual Studio中,从工具"菜单中选择扩展和更新"选项.
  2. 从出现的对话框中,从左侧的树中展开更新"节点.
  3. 从树中选择"Visual Studio画廊"选项.
  4. 最后,在对话框右侧的更新列表中查找程序包管理器"更新,然后单击它旁边的更新"按钮.

这篇关于检索***的软件包元数据时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆