Visual Studio NuGet/Extension安装失败,并显示“该进程无法访问该文件,因为该文件正在被另一个进程使用". [英] Visual Studio NuGet / Extension Installs Fail with "The process cannot access the file because it is being used by another process"

查看:264
本文介绍了Visual Studio NuGet/Extension安装失败,并显示“该进程无法访问该文件,因为该文件正在被另一个进程使用".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将扩展或NuGet软件包安装到Visual Studio失败,并显示错误该进程无法访问该文件,因为该文件正在被另一个进程使用".

Installing extensions or NuGet packages to Visual Studio fail with the error 'The process cannot access the file because it is being used by another process'.

此链接提供了一种解决方法,但是当我想尽可能使用内置功能时,每次扩展/NuGet软件包需要更新时都必须这样做.

This link provides a workaround but it's a pain to have to do it each time an Extension / NuGet package needs updating when I'd just like to use the in built functionality if possible.

有人知道此修复程序吗?

Does anyone know of a fix for this?

推荐答案

我们发现这是我们公司的McAfee防病毒软件存在的问题.

We found that this was an issue with our corporate McAfee anti-virus software.

此链接 ,但是,我们必须在排除列表中添加三个进程名称,以允许更新执行而不会出错.

This link from McAfee took us part of the way, however, we had to add three process names to the exclusion list to allow the updates to execute without error.

  1. 打开RegEdit并导航至:

  1. Open RegEdit and navigate to:

HKLM\System\CurrentControlSet\Services\mfeEEFF

创建一个密钥"ExemptedProcesses".

Create a key 'ExemptedProcesses'.

创建以下字符串值(列为名称/类型/数据):

Create the following String Values (listed as Name / Type / Data):

"1"/"REG_SZ"/"devenv.exe"

'1' / 'REG_SZ' / 'devenv.exe'

"2"/"REG_SZ"/"MSIEXE.exe"

'2' / 'REG_SZ' / 'MSIEXE.exe'

'3'/'REG_SZ'/'VSIXInstaller.exe'

'3' / 'REG_SZ' / 'VSIXInstaller.exe'

重新启动计算机.

这篇关于Visual Studio NuGet/Extension安装失败,并显示“该进程无法访问该文件,因为该文件正在被另一个进程使用".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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