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

在进行设置时无法运行

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


当前回答

在Visual Studio 2017中,我必须结束这些过程:

Visual Studio 2017 TFS电动工具外壳扩展

然后我可以启动VS2017。

其他回答

我今天遇到了同样的问题(VS 2015更新3)。注意到服务“VSStandardCollectorService140”被停止了。(我昨天登录时出现蓝屏错误。可能与此有关)。重新启动这个服务,它正在工作

如果上面提到的解决方案都没有帮助(对我来说就是这样),我还有另一个建议。进入控制面板,在“程序和功能”下,单击“卸载程序”。

您将看到一个大窗口,其中包含所有已安装的应用程序。如果您尝试安装SDK或其他东西,但在此之后程序停止工作,请找到所有与Visual studio相关的程序,其安装日期与您开始遇到问题的日期相同。右键单击它们,如果有“修复”选项,请单击该选项。如果没有,请单击“卸载”,然后在随后打开的窗口中单击“修复”。

因此,本质上,您正在修复在您开始看到问题的同一天安装的所有与Visual studio相关的东西。在安装Azure SDK并看到这个错误后,它为我工作了。

很可能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安装程序。安装程序似乎可以修复任何背景问题。然后,您可以从安装程序启动Visual Studio。

我刚才用这种方法解决了我的问题。

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

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

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