1、参考https://blog.csdn.net/weixin_33775572/article/details/85977699,安装powershell3.0
2. 安装Windows Management Framework 3.0的6.1内核版本安装文件(Windows6.1-KB2506143-x64.msu)
3、安装choco,参见https://chocolatey.org/install
在powershell中执行Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
4、安装成功choco
5、安装dotnetcore-windowshosting
choco install dotnetcore-windowshosting --version=2.2.3
6、卸载
choco uninstall dotnetcore-windowshosting --version=2.2.3
7、强制重新安装
choco uninstall dotnetcore-windowshosting --version=2.2.3 --force