gpt4 book ai didi

c# - 无法使用 Nuget 包还原将 Newtonsoft.Json 从 10.0.1 更新到 10.0.2

转载 作者:行者123 更新时间:2023-11-30 21:40:47 24 4
gpt4 key购买 nike

我无法全新安装 10.0.2 或从 10.0.1 升级。我总是遇到这样的错误,显然无法访问文件夹。

Packages directory here \Newtonsoft.Json.10.0.2\lib\net20\Newtonsoft.Json.xml could not be found in your workspace, or you do not have permission to access it.

如果我检查包目录,我确实只有一个 10.0.1 文件夹,即使是全新安装。

编辑:如果我在目录中打开资源管理器窗口,并在“升级”期间不断按 F5,我可以看到创建了一个 10.0.2 文件夹。一旦升级失败,它就会被删除。

Edit2:这可能与 TFS 有某种关系吗?

最佳答案

这看起来像这个问题:

TFS Error "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control

the bug is during uninstalling packages, nuget will delete package files from TFS, but if user set disableSourceControllntegration to true, package files are not added to TFS workplace during installing, so TFS can't find those files during uninstalling. (sic)

解决方法是安装最新版本的 nuget.exe(3.5 或更高版本),您可以找到 here .

关于c# - 无法使用 Nuget 包还原将 Newtonsoft.Json 从 10.0.1 更新到 10.0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44278945/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com