40.Station-publish(netcoreapp3.1).sh 710 B

123456789101112131415161718192021222324252627282930313233343536
  1. set -e
  2. #---------------------------------------------------------------------
  3. #(x.1)参数
  4. args_="
  5. export basePath=/root/temp/svn
  6. # "
  7. #----------------------------------------------
  8. echo "(x.2)netVersion"
  9. netVersion=netcoreapp3.1
  10. #----------------------------------------------
  11. echo "(x.3)publish $netVersion"
  12. #修改csproj文件中的版本号
  13. cd $basePath
  14. sed -i 's/net5.0/'"$netVersion"'/g' `grep -a '<publish>' . -rl --include *.csproj`
  15. cd $basePath/Publish/DevOps/release-bash
  16. bash 40.Station-publish.sh;
  17. #还原csproj文件中的版本号为net5.0
  18. cd $basePath
  19. sed -i 's/'"$netVersion"'/net5.0/g' `grep -a '<publish>' . -rl --include *.csproj`
  20. cd $basePath/Publish/DevOps/release-bash