nuget publish.bat 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. cd /d ../../Library/
  2. ::------------------Library
  3. cd /d Library
  4. echo 'pack Vit.Core'
  5. cd /d Vit\Vit.Core\Vit.Core
  6. dotnet build --configuration Release
  7. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  8. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  9. cd /d ../../../
  10. echo 'pack Vit.Net.Http.FormFile'
  11. cd /d Vit\Vit.Net.Http.FormFile
  12. dotnet build --configuration Release
  13. dotnet pack --configuration Release --output ..\..\..\Doc\Publish\nuget
  14. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  15. cd /d ../../
  16. echo 'pack Vit.WebHost'
  17. cd /d Vit\Vit.WebHost
  18. dotnet build --configuration Release
  19. dotnet pack --configuration Release --output ..\..\..\Doc\Publish\nuget
  20. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  21. cd /d ../../
  22. echo 'pack Sers.Hardware'
  23. cd /d Sers\Sers.Hardware\Sers.Hardware
  24. dotnet build --configuration Release
  25. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  26. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  27. cd /d ../../../
  28. echo 'pack Sers.Core'
  29. cd /d Sers\Sers.Core\Sers.Core
  30. dotnet build --configuration Release
  31. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  32. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  33. cd /d ../../../
  34. echo 'pack Sers.CL.Ipc.NamedPipe'
  35. cd /d Sers\Sers.CL\Ipc\Sers.CL.Ipc.NamedPipe
  36. dotnet build --configuration Release
  37. dotnet pack --configuration Release --output ..\..\..\..\..\Doc\Publish\nuget
  38. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  39. cd /d ../../../../
  40. echo 'pack Sers.CL.Socket.Iocp'
  41. cd /d Sers\Sers.CL\Socket\Sers.CL.Socket.Iocp
  42. dotnet build --configuration Release
  43. dotnet pack --configuration Release --output ..\..\..\..\..\Doc\Publish\nuget
  44. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  45. cd /d ../../../../
  46. echo 'pack Sers.CL.Socket.ThreadWait'
  47. cd /d Sers\Sers.CL\Socket\Sers.CL.Socket.ThreadWait
  48. dotnet build --configuration Release
  49. dotnet pack --configuration Release --output ..\..\..\..\..\Doc\Publish\nuget
  50. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  51. cd /d ../../../../
  52. echo 'pack Sers.CL.ClrZmq.ThreadWait'
  53. cd /d Sers\Sers.CL\Zmq\ThreadWait\Sers.CL.ClrZmq.ThreadWait
  54. dotnet build --configuration Release
  55. dotnet pack --configuration Release --output ..\..\..\..\..\..\Doc\Publish\nuget
  56. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  57. cd /d ../../../../../
  58. echo 'pack Sers.CL.WebSocket'
  59. cd /d Sers\Sers.CL\WebSocket\Sers.CL.WebSocket
  60. dotnet build --configuration Release
  61. dotnet pack --configuration Release --output ..\..\..\..\..\Doc\Publish\nuget
  62. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  63. cd /d ../../../../
  64. echo 'pack Sers.CL.Zmq.FullDuplex'
  65. cd /d Sers\Sers.CL\Zmq\FullDuplex\Sers.CL.Zmq.FullDuplex
  66. dotnet build --configuration Release
  67. dotnet pack --configuration Release --output ..\..\..\..\..\..\Doc\Publish\nuget
  68. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  69. cd /d ../../../../../
  70. echo 'pack Sers.ServiceStation'
  71. cd /d Sers\Sers.ServiceStation\Sers.ServiceStation
  72. dotnet build --configuration Release
  73. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  74. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  75. cd /d ../../../
  76. echo 'pack Sers.Gateway'
  77. cd /d Sers\Sers.Gateway\Sers.Gateway
  78. dotnet build --configuration Release
  79. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  80. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  81. cd /d ../../../
  82. cd ..
  83. ::------------------ServiceCenter
  84. echo 'pack Sers.ServiceCenter'
  85. cd /d ServiceCenter\Sers.ServiceCenter\Sers.ServiceCenter
  86. dotnet build --configuration Release
  87. dotnet pack --configuration Release --output ..\..\..\Doc\Publish\nuget
  88. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  89. cd /d ../../../
  90. echo 'pack Sers.Gover'
  91. cd /d ServiceCenter\Sers.ServiceCenter\Sers.Gover
  92. dotnet build --configuration Release
  93. dotnet pack --configuration Release --output ..\..\..\Doc\Publish\nuget
  94. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  95. cd /d ../../../
  96. ::------------------Sers.Serslot
  97. echo 'pack Sers.Serslot'
  98. cd /d Library\Sers\Sers.Serslot\Sers.Serslot
  99. dotnet build --configuration Release
  100. dotnet pack --configuration Release --output ..\..\..\..\Doc\Publish\nuget
  101. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  102. cd /d ../../../../
  103. cd /d Doc\Publish
  104. echo 'pack sers_lib succeed!'
  105. echo 'pack sers_lib succeed!'
  106. echo 'pack sers_lib succeed!'