@echo off
::(x.1)初始化
set netVersion=net5.0
::(x.2)修改要发布项目的netcore版本号
VsTool.exe replace -r --path "../../.." --file "App.Gateway.csproj|App.Gover.Gateway.csproj|App.ServiceCenter.csproj|Did.SersLoader.Demo.csproj|App.Robot.Station.csproj" --old "netcoreapp2.1" --new "%netVersion%"
::(x.3)发布项目
call "40.Station-publish.bat"
::(x.4)还原项目的版本号
VsTool.exe replace -r --path "../../.." --file "App.Gateway.csproj|App.Gover.Gateway.csproj|App.ServiceCenter.csproj|Did.SersLoader.Demo.csproj|App.Robot.Station.csproj" --old "%netVersion%" --new "netcoreapp2.1"
echo %~n0.bat 执行成功!
cd /d "%curPath%"