为什么在尝试恢复Visual Studio 2022中的Nuget软件包时会遇到错误?

发布于 2025-02-05 20:05:59 字数 656 浏览 3 评论 0原文

我使用Visual Studio 2022有一个.NET Core应用程序。 我遇到了管理Nuget软件包的困难。

当我尝试在解决方案上还原Nuget软件包时,我会收到以下错误消息:

nuget软件包还原失败。请参阅错误列表窗口的窗口 详细的警告和错误。时间过去:00:00:00.1126945 ============================恢复Nuget软件包时发生了错误:本地源'C:\ Program Files(x86)\ DEVEXPRESS 19.2.net核心桌面库\ system \ components \ packages'不存在。

我尝试从工具 - >选项 - > nuget软件包清除缓存 经理 - >清除所有Nuget Caches。

我还尝试在文件夹中手动删除我的nuget.config:c:\ users \ foobar \ appdata \ roaming \ nuget,

我仍然会遇到相同的错误。

我的解决方案中的任何项目都未使用或引用Devexpress 19.2。有一次,我将其安装在机器上,但将其删除。我目前正在使用DeVexpress 21.2。

我一直在努力弄清楚这几天。如何解决此问题?我不知道某处有缓存吗?我必须卸载/重新安装Visual Studio吗?

I have a .Net Core application using Visual Studio 2022.
I am running into difficulties managing my NuGet packages.

When I attempt to do a NuGet package restore on the solution, I get the following error message:

NuGet package restore failed. Please see Error List window for
detailed warnings and errors. Time Elapsed: 00:00:00.1126945
========== Finished ========== Error occurred while restoring NuGet packages: The local source 'C:\Program Files (x86)\DevExpress
19.2.NET Core Desktop Libraries\System\Components\Packages' doesn't exist.

I tried clearing the cache from Tools->Options->NuGet Package
Manager->Clear All NuGet Caches.

I also tried manually deleting my NuGet.config in my folder: C:\Users\foobar\AppData\Roaming\NuGet

I still get the same error.

DevExpress 19.2 is not used or referenced by any of the projects in my solution. At one point I had it installed on my machine, but removed it. I'm currently using the DevExpress 21.2.

I've been trying to figure this out for a couple of days. How do I fix this issue? Is there a cache somewhere that I am unaware of? Will I have to uninstall/reinstall Visual Studio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半寸时光 2025-02-12 20:05:59

您收到的错误显示路由:'c:\ program文件(x86)\ devexpress 19.2.net core桌面库\ system \ components \ components \ packages'这可能是beacuse,您将其包含在软件包中,您需要删除从那里开始,然后用正确的源还原包:

软件包源

The error you're getting show a route: 'C:\Program Files (x86)\DevExpress 19.2.NET Core Desktop Libraries\System\Components\Packages' this is maybe beacuse you have it in your Package sources, you need to delete it from there and then restore the packages with the correct source:

Package Source

涫野音 2025-02-12 20:05:59

您可以在此处检查包源并更新本地路径:

You can check your package source and update your local path here:
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文