百度一下windows
搭建好.net core2.0的環境,下載:https://aka.ms/dotnetcore-2-windowshosting (,net core 部署在iis上的模塊)bash
建立一個風格自由的項目app
appcmd.exe 默認路徑在 c:\windows\system32\inetsrv\下ui
cd jenkins_demo cd jenkins_demo dotnet restore dotnet build appcmd.exe stop site "jenkins02" appcmd.exe stop appPool /appPool.name:"jenkins02" dotnet publish --output G:\core2.0_publish\jenkins02 appcmd.exe start apppool /apppool.name:"jenkins02" appcmd.exe start site "jenkins02"