安装 dotnetcore-windowshosting

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

https://chocolatey.org/packages/dotnetcore-windowshosting

原文地址:https://www.cnblogs.com/simadi/p/12623523.html