当我下载 Visual Studio 2019 的扩展程序时,它不会在重新启动时安装

When I download an extension for Visual Studio 2019, it doesn't get installed on restart

当我在 Visual Studio 2019 IDE 内下载扩展程序时,它下载成功并给出消息 "changes will be scheduled and that the installs will begin when I close all windows"。如果我关闭 IDE 中所有打开的 windows,什么也不会发生。同样在重启后,我没有看到安装的扩展。

changes will be scheduled and that the installs will begin when I close all windows

要关闭所有 windows,请尝试 File menu => Exit 关闭 VS 而不是单击 X 按钮。

这是我发现的其他一些解决方法:

1.Download 来自 VS Marketplace 的扩展,然后双击 xx.vsix 文件开始手动安装。

2.If 弹出窗口没有显示,在 %USERPROFILE%\AppData\Local\Temp 文件夹中找到 xx.vsix,运行 在那里安装。参见 this

当然这些都是解决方法,但是我无法在我的机器上重现同样的问题。所以我想也许 VS 中有什么东西坏了,或者一个未知的进程中断了安装。我建议我们可以确保我们处于管理员权限,运行 VS 修复(或将 VS 更新到最新的 16.3.6),并检查是否有像 cmd 这样的进程(发现一个类似的问题,其原因是 cmd.exe) 由任务管理器...

希望以上内容对遇到类似问题的人有所帮助:)