1.运行powershell,在运行窗口中输入:powershell,点回车,如下图:
2.安装choco,在打开的powershell窗口中输入:Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')),点回车
3.安装donetcore windowshosting,在打开的powershell窗口中输入:choco install dotnetcore-windowshosting,点回车。
4.验证是否安装成功,如下图:
5.添加网站,如下图: