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