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

在进行设置时无法运行

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


当前回答

给点时间再试一次。 在任务管理器中结束与visual studio相关的所有任务。 如果这两个解决方案都不工作,那么重新启动机器,它肯定会工作。

其他回答

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

您可以午餐任务管理器或进程黑客和终止VSSVC.exe。它是影子复制服务的一部分,用于系统恢复、系统文件保护和“以前的文件版本”功能,但可能会导致问题。 还原点是在系统变更时自动创建的。

解决方案:不要只是打开任务管理器并杀死vsautoupdate .exe正在更新的所有进程,这将在您尝试启动Visual Studio时出现问题,因为更新未完成。相反,等待更新完成,这是当你启动Visual Studio。如果你不再需要定期更新的Visual Studio组件,同样建议通过Visual Studio安装程序卸载该组件

试着重新启动你的电脑。这对我很管用。

很可能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.