我试图打开Visual Studio,但它给出了一个错误:

在进行设置时无法运行

在我重新启动机器之前,它运行正常。我已经安装了这个版本从过去的一年。


当前回答

启动任务管理器并关闭Windows安装程序。

其他回答

我在Visual Studio 2017中遇到了这个问题。任务管理器中有名为VSIXAutoUpdate.exe的进程。我看着任务管理器,它们在刷出和消失。有几次,Visual Studio 2017进程会生成和消失。

VSIX Auto Updater在任务管理器中停止显示后,它应用了所有的后台更新,我可以启动Visual Studio。

我不建议像这个问题的其他答案所建议的那样,在安装更新的过程中杀死这些进程。只要等待,直到他们完成任务管理器。

根本原因: 如果,我们关闭了系统而没有正确关闭visual studio,下次我们将打开系统,那么有时我们会遇到这个问题,因为设置将在后台运行。

解决办法: 不需要做任何事情,只需等待10到15分钟,然后再次打开视觉工作室。它会自动修复这个问题。

在我的任务管理器中有visual studio 2012更新的过程,我结束了这个过程,我的VS 2015工作正常…进入任务管理器,寻找任何(版本)VS更新流程,并结束该流程。

很可能Visual Studio正在更新,就像错误消息暗示的那样,如果你等待几分钟更新完成,你应该能够再次运行Visual Studio而没有问题。

If the problem persists or if you're just curious, open up your task manager and see if there is anything related to (Microsoft) Visual Studio running but don't just kill the process. Check instead if the process is using any resources - if it has a high I/O count, then it's actually updating and you should let it do its thing. If CPU-usage and memory usage remain mostly constant and there is no disk activity for the process for several minutes, this could mean that the process is stuck. You might have to kill it, but proceed with caution. Hopefully if this is an update for Visual Studio, the process name should include a version number or some sort of indication of what kind of update is being applied that you can use to search for more information through a search engine or through Microsoft's online resources.

启动任务管理器并结束与Visual Studio相关的任何进程。