删除后无法重新安装 .Net Core SDK "product is already installed"

Can't reinstall .Net Core SDK after removal "product is already installed"

我用“程序和功能”卸载了 .Net Core SDK。现在,当我再次尝试安装 .Net Core SDK 时,出现以下 错误代码:

Error 0x80070666: Process returned error: 0x666

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

假设你在 Windows,你能去

C:\Program Files\dotnet\sdk

手动删除您要重新安装的 SDK。