40.dotnet-publish.sh 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. set -e
  2. #---------------------------------------------------------------------
  3. #(x.1)参数
  4. args_="
  5. export codePath=/root/temp/svn/dotnet
  6. # "
  7. #----------------------------------------------
  8. echo "(x.2)publish netcoreapp2.1"
  9. export netVersion=netcoreapp2.1
  10. bash 41.dotnet-publish-by-netVersion.sh;
  11. #----------------------------------------------
  12. echo "(x.3)publish net6.0"
  13. #修改csproj文件中的版本号为6.0
  14. cd $codePath
  15. sed -i 's/netcoreapp2.1/net6.0/g' `grep -a 'netcoreapp2.1' . -rl --include *.csproj`
  16. export netVersion=net6.0
  17. bash 41.dotnet-publish-by-netVersion.sh;
  18. #修改csproj文件中的版本号为2.1
  19. cd $codePath
  20. sed -i 's/net6.0/netcoreapp2.1/g' `grep -a 'net6.0' . -rl --include *.csproj`