Window server 2019安装.net3.5并通过jenkins发布c#代码

  

通过闪电下载工具从msdn I tell you下载的windows2019 en版本

光盘下载地址:https://msdn.itellyou.cn/

闪电下载工具:http://bbs.xiaokanba.com/

加载到虚拟光驱d:

下载地址:ed2k://|file|en_windows_server_2019_x64_dvd_4cb967d8.iso|4843268096|91EF33D18517C2711517A84F14463072|/


看到光盘加载成功




光驱.net需要的组件所在的路径

d:sourcessxs

安装media的组件环境

windows server2019下相关的bat脚本 C:UsersAdministratorwwwrootconvert.chinasoft.comash
auto.bat

@echo off
cd /d %~dp0

echo 1 >Temp.txt
exit


automonitor.bat

@echo off
cd /d %~dp0

setlocal enabledelayedexpansion

for /f %%a in (Temp.txt) do (
set value=%%a
if "!value!"=="1" (
    call autorun.bat
    echo 0 >Temp.txt
)
)
exit


autorun.bat

@echo off
cd /d %~dp0

::
start taskkill /F /IM OnlineServiceDispatcher.exe
start taskkill /F /IM OnlineConvertService.exe
start taskkill /F /IM GetMediaInfo.exe
start taskkill /F /IM CmdConverter.exe
start taskkill /F /IM ffmpeg.exe
start taskkill /F /IM OnlineServiceMonitor.exe

::
ping 127.1 -n 5 >nul 2>nu

::
xcopy C:UsersAdministratorwwwrootconvert.chinasoft.comAppPack_N* C:UsersAdministratorwwwrootconvert.chinasoft.com.exe* /s /e /y /d

::
start C:UsersAdministratorwwwrootconvert.chinasoft.com.exeOnlineServiceDispatcher.exe
if "%errorlevel%"=="0" (echo "OnlineServiceDispatcher.exe is start.")

start C:UsersAdministratorwwwrootconvert.chinasoft.com.exeOnlineConvertService.exe
if "%errorlevel%"=="0" (echo "OnlineConvertService.exe is start.")

start C:UsersAdministratorwwwrootconvert.chinasoft.com.exeOnlineServiceMonitor.exe
if "%errorlevel%"=="0" (echo "OnlineServiceMonitor.exe is start.")

 
原文地址:https://www.cnblogs.com/reblue520/p/13681112.html