【发布时间】:2018-03-09 22:10:47
【问题描述】:
我有来自下面的错误,我完全不知道如何解决它。到目前为止尝试了以下方法:
- 清理 bin/obj/packages/packages 缓存
- 从 csproj 中手动删除并打包文件,然后添加它..仍然错误
- 更新 Visual Studio 2017
- 重新安装 Visual Studio 2017
- 跟踪哪些进程正在使用名称包含 Newtonsoft 的文件
- 从另一台笔记本电脑复制解决方案,构建工作正常
然而,毕竟从上面,我仍然得到:
Error NuGet Package restore failed for project DriversApp.Android: Unable to find version '10.0.3' of package 'Newtonsoft.Json'.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Newtonsoft.Json.10.0.3' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
https://api.nuget.org/v3/index.json: Error downloading 'Newtonsoft.Json.10.0.3' from 'https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.3/newtonsoft.json.10.0.3.nupkg'.
The process cannot access the file 'C:\Users\user\.nuget\packages\newtonsoft.json\10.0.3\lib\netstandard1.0\Newtonsoft.Json.dll' because it is being used by another process.
. Please see Error List window for detailed warnings and errors.
如何解决这个问题?我真的被这个卡住了......
【问题讨论】:
标签: visual-studio json.net nuget nuget-package nuget-package-restore