@echo off
:: #1 init
set netVersion=net5.0
:: #2 change netcore version
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 "net6.0" --new "%netVersion%"
:: #3 publish
call "40.Station-publish.bat"
:: #4 revert netcore version
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 "net6.0"
echo %~n0.bat success
cd /d "%curPath%"