[英]Can't Install or Uninstall Visual Studio 2017/2019
I have previously installed Microsoft Visual Studio 2017 but I forgot to add the .NET component for programming in unity.我之前安装了 Microsoft Visual Studio 2017,但我忘记添加 .NET 组件以进行统一编程。 When I tried to launch the Visual Studio Installer, it shows me this:当我尝试启动 Visual Studio 安装程序时,它向我显示:
It gives me this specific error code when running the installer运行安装程序时它给了我这个特定的错误代码
Then, when I tried to download the latest version of Visual Studio 2019, it gives me two errors when running the installer:然后,当我尝试下载最新版本的 Visual Studio 2019 时,运行安装程序时出现两个错误:
Failed to download Channel.下载频道失败。 Unable to download the channel from link无法从链接下载频道
A product matching the following parameters could not be found找不到符合以下参数的产品
Also, for some reason, uninstalling it doesn't seem to work as when I tried to uninstall it via the add/remove programs on Windows 10, it says it's completing the uninstall but when I restart it's still there.此外,由于某种原因,卸载它似乎不起作用,因为当我尝试通过 Windows 10 上的添加/删除程序卸载它时,它说它正在完成卸载,但是当我重新启动它时它仍然存在。
Lastly, I've tried to use the VisualStudioUninstaller tool on GitHub but even then when using it, it still results in the same errors.最后,我尝试在 GitHub 上使用 VisualStudioUninstaller 工具,但即使在使用它时,它仍然会导致相同的错误。 I also checked my Visual Studio folders but there is no InstallCleanup.exe no matter how many times I try to run the installer.我还检查了我的 Visual Studio 文件夹,但无论我尝试运行安装程序多少次,都没有 InstallCleanup.exe。
The error you report is usually related to a corrupt or out sync .vs
cache.您报告的错误通常与损坏或不同步的.vs
缓存有关。 Usually, deleting the hidden folder in the root of your solution does solve the issue.通常,删除解决方案根目录中的隐藏文件夹确实可以解决问题。 If furthermore, manually cleaning the file system by deleting the bin
and obj
folders for each project might help sometimes.此外,有时通过删除每个项目的bin
和obj
文件夹来手动清理文件系统可能会有所帮助。
For additional troubleshooting, please have a look to Why does my visual studio closes automatically without any errors有关其他故障排除,请查看为什么我的 Visual Studio 会自动关闭而没有任何错误
faced same type of problem, during that i resolved by deleting registry files then rebooted my machine.面临同样类型的问题,在此期间我通过删除注册表文件解决了问题,然后重新启动了我的机器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.