build_packages.bat 916 B

12345678910111213141516171819202122232425262728
  1. @rem Builds gRPC NuGet packages
  2. @rem Current package versions
  3. set VERSION=0.6.0
  4. set CORE_VERSION=0.10.0
  5. @rem Adjust the location of nuget.exe
  6. set NUGET=C:\nuget\nuget.exe
  7. setlocal
  8. cd ..\..\vsprojects\nuget_package
  9. @call buildall.bat || goto :error
  10. endlocal
  11. @call buildall.bat BUILD_SIGNED || goto :error
  12. %NUGET% pack ..\..\vsprojects\nuget_package\grpc.native.csharp_ext.nuspec -Version %CORE_VERSION% || goto :error
  13. %NUGET% pack Grpc.Auth\Grpc.Auth.nuspec -Symbols -Version %VERSION% || goto :error
  14. %NUGET% pack Grpc.Core\Grpc.Core.nuspec -Symbols -Version %VERSION% -Properties GrpcNativeCsharpExtVersion=%CORE_VERSION% || goto :error
  15. %NUGET% pack Grpc.HealthCheck\Grpc.HealthCheck.nuspec -Symbols -Version %VERSION% || goto :error
  16. %NUGET% pack Grpc.Tools.nuspec -Version %VERSION% || goto :error
  17. %NUGET% pack Grpc.nuspec -Version %VERSION% || goto :error
  18. goto :EOF
  19. :error
  20. echo Failed!
  21. exit /b %errorlevel%