windows 通过choco 安装 .net core windowshosting

1、windows 安装包管理:

    安装choco  https://chocolatey.org/install

    cmd输入命令:Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

2、制作bat脚本  

    choco install dotnetcore-windowshosting

3、通过管理员允许bat文件

posted @ 2020-05-19 15:26  厦门_成  阅读(416)  评论(0编辑  收藏  举报