nuget dll被另一个进程使用 [英] nuget dll is used by another process

查看:76
本文介绍了nuget dll被另一个进程使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从下面看到了错误,而且我对解决该问题的想法一无所知.到目前为止,尝试了以下操作:

I have the error from below and I'm quite out of ideas how to solve it. Tried the following until now:

  1. 清理bin/obj/packages/packages缓存
  2. 从csproj手动删除并打包文件,然后将该包添加..still错误
  3. 更新Visual Studio 2017
  4. 重新安装Visual Studio 2017
  5. 跟踪哪些进程正在使用名称包含 Newtonsoft
  6. 的文件
  7. 从构建正常的另一台笔记本电脑中复制解决方案
  1. Clean bin/obj/packages/packages cache
  2. Remove manually from csproj and packages files the package and add it afterwards..still error
  3. Update Visual Studio 2017
  4. Reinstall Visual Studio 2017
  5. Trace which processes are using a file with name that contains Newtonsoft
  6. Copy the solution from another laptop where the builds works just fine

但是,毕竟,从上面看,我仍然得到:

Yet, after all from above, I still get:

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.                

如何解决这个问题?我真的被这个卡住了...

How to get this solved? I got really stuck on this one...

推荐答案

经过大量调查和构想,我通过卸载防病毒解决方案解决了此问题,因为我在笔记本电脑中添加的规则已被公司服务器取代政策.

After a lot of investigation and ideas, I've solved this by uninstalling the antivirus solution as the rules added by me within my laptop were overrode by the company server policies.

结论是,首先检查您的防病毒解决方案,如果您处于受控环境中,请确保您的规则不会被公司服务器策略所取代.

As a conclusion, first check your antivirus solution, and if you are within a controlled environment, make sure your rules are not overrode by company server policies.

谢谢@Leo Liu-MSFT的帮助.

Thank you, @Leo Liu-MSFT for the assistance.

这篇关于nuget dll被另一个进程使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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