win10,iis安裝 WindowsHosting
1、鏈接地址https://chocolatey.org/packages/dotnetcore-windowshosting/2.2.3
2、新建一個bat文件
choco install dotnetcore-windowshosting --version=2.2.3
pause
3、以管理員身份運行bat文件
4、上面的托管模塊安裝成之后需要重啟電腦,或者使用命令行
net stop was
net start w3svc
5、編輯"應用程序池"的"基本設置",修改".NET Framework 版本"為"無托管代碼"
6、編輯"應用程序池"的"高級設置",修改"加載用戶配置文件"為"True"
————————————————
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