mirror of https://github.com/grpc/grpc.git
commit
292a8afd11
25 changed files with 127 additions and 156 deletions
@ -0,0 +1,22 @@ |
||||
gRPC Native Nuget package |
||||
========================= |
||||
|
||||
Prerequisites |
||||
------------- |
||||
|
||||
NuGet binary |
||||
|
||||
Building the package |
||||
-------------------- |
||||
|
||||
To build the native package, you need precompiled versions |
||||
of grpc_csharp_ext library artifacts for Windows, Linux and Mac. |
||||
In the normal gRPC release process, these are built by a Jenkins |
||||
job and they are copied to the expected location before building |
||||
the native nuget package is attempted. |
||||
|
||||
See tools/run_tests/build_artifacts.py for more details how |
||||
precompiled artifacts are built. |
||||
|
||||
When building the native NuGet package, ignore the "Assembly outside lib folder" |
||||
warnings (the DLLs are not assemblies, they are native libraries). |
Binary file not shown.
@ -1,3 +0,0 @@ |
||||
/tmp |
||||
/output |
||||
*.nupkg |
@ -1,23 +0,0 @@ |
||||
gRPC Native Nuget package |
||||
========================= |
||||
|
||||
Prerequisites |
||||
------------- |
||||
Multiple versions of VS installed to be able to build all the targets: |
||||
* Visual Studio 2015 |
||||
* Visual Studio 2013 |
||||
* Visual Studio 2010 (you might need SP1 to prevent LNK1123 error) |
||||
|
||||
NuGet binary |
||||
|
||||
Building the package |
||||
-------------------- |
||||
|
||||
Build all flavors of gRPC C# extension and package them as a NuGet package. |
||||
``` |
||||
buildall.bat |
||||
|
||||
nuget pack grpc.native.csharp.nuspec |
||||
``` |
||||
|
||||
When building the NuGet package, ignore the "Assembly outside lib folder" warnings (they DLLs are not assemblies, they are native libraries). |
@ -1,31 +0,0 @@ |
||||
@echo off |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 |
||||
call :build x64 Release v140 || goto :eof |
||||
call :build x64 Debug v140 || goto :eof |
||||
endlocal |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 |
||||
call :build Win32 Release v140 || goto :eof |
||||
call :build Win32 Debug v140 || goto :eof |
||||
endlocal |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64 |
||||
call :build x64 Release v120 || goto :eof |
||||
call :build x64 Debug v120 || goto :eof |
||||
endlocal |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 |
||||
call :build Win32 Release v120 || goto :eof |
||||
call :build Win32 Debug v120 || goto :eof |
||||
endlocal |
||||
|
||||
goto :eof |
||||
|
||||
:build |
||||
msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:OutDir=..\..\nuget_package\output\%3\%1\%2\ /P:IntDir=..\..\nuget_package\tmp\%3\%1\%2\ ..\grpc_csharp_ext.sln || goto :eof |
||||
goto :eof |
Loading…
Reference in new issue