在将代码签入 DevOps 时,Visual Studio 不断尝试查找旧的 NuGet 包版本

发布于 2025-01-19 14:38:16 字数 687 浏览 1 评论 0原文

vs Pro 2019 V16.11.11。

每次我在DevOps Project Repos(VST)中查看代码时,Visual Studio都会引发此错误,涉及 nuget packages of/packages folder y i i i i i i i i i i i i i i i t im 不要再参考,并且已升级到新版本。

我已经尝试重新安装旧版本,然后重新升级和卸载,但它仍然不断提出这些错误。我已经尝试删除包装文件夹,清洁解决方案等。

我发现要克服此问题的唯一方法是创建一个虚拟项目并添加对这些旧的Nuget软件包版本的参考,这样我就不会得到错误,可以检查代码。实际上,在其中一些Nuget软件包中,它为多个版本带来了此错误,我必须继续添加虚拟项目以保留对其他版本的参考。

请帮忙;我不确定还有什么尝试。我在任何packages.config,project文件或解决方案文件中都找不到对这些旧版本的任何参考,因此我什至不确定它们来自哪里。

VS Pro 2019 v16.11.11.

Every time I check in code in my DevOps project repos (VSTS), Visual Studio throws this error referring to some old versions of some NuGet packages in the /packages folder that I don't reference anymore and have been upgraded to new versions.

I've tried reinstalling the old version and then re-upgrading and uninstalling, and it still keeps throwing these errors. I've tried deleting the packages folder, cleaning the solution, etc.

The only way I've found to get past this is to create a dummy project and add references to these old NuGet package versions, just so I won't get the error and can check in code. In fact on some of these NuGet packages, it throws this error for multiple versions, and I have to keep adding dummy projects to hold references to additional versions.

Please help; I'm not sure what else to try. I cannot find any references to these old versions in any of the packages.config, project files, or solution file, so I'm not even sure where they are coming from.

enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文