最佳答案
解决方案对我有用(没有其他帮助)
- 安装 PowerShell v7 ( https://aka.ms/pscore6 )
- 从 C:\Windows\SysWOW64\WindowsPowerShell\v1.0 备份原始 PowerShell v1
- 将“C:\Program Files\PowerShell\7”复制到 C:\Windows\SysWOW64\WindowsPowerShell\v1.0
- 将 pwsh.exe 重命名为 powershell.exe
- 现在 VS 安装程序正在使用 PowerShell v7,认为它是 v1,工作正常!
所以,我相信这是旧版本 PowerShell 中的错误
也许有更好的方法来模仿版本,我只是在为此损失了一天之后做了老式的残酷魔法
关于visual-studio - 无法安装 microsoft.netcore.hostpath 2019,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70461843/