aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-05-14 18:25:20 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-05-14 18:25:20 -0700
commitdd95e9d335eda987492975525ee99f02d3abc9b2 (patch)
tree9e8ec37b4921a0fc537e3c1869326042c996d4a6 /src/csharp
parentd2c513ab8b1349155465f3f59020b3df362b38d3 (diff)
added build script and script for building nuget packages
Diffstat (limited to 'src/csharp')
-rw-r--r--src/csharp/build_packages.bat16
-rw-r--r--src/csharp/buildall.bat18
2 files changed, 34 insertions, 0 deletions
diff --git a/src/csharp/build_packages.bat b/src/csharp/build_packages.bat
new file mode 100644
index 0000000000..3fb5375d3d
--- /dev/null
+++ b/src/csharp/build_packages.bat
@@ -0,0 +1,16 @@
+@rem Builds NuGet packages
+
+@rem Adjust the location of nuget.exe
+set NUGET=C:\nuget\nuget.exe
+
+@call buildall.bat || goto :error
+
+%NUGET% pack Grpc.Core\Grpc.Core.nuspec || goto :error
+%NUGET% pack Grpc.Auth\Grpc.Auth.nuspec || goto :error
+%NUGET% pack Grpc.nuspec || goto :error
+
+goto :EOF
+
+:error
+echo Failed!
+exit /b %errorlevel% \ No newline at end of file
diff --git a/src/csharp/buildall.bat b/src/csharp/buildall.bat
new file mode 100644
index 0000000000..e0071d3029
--- /dev/null
+++ b/src/csharp/buildall.bat
@@ -0,0 +1,18 @@
+@rem Convenience script to build gRPC C# from command line
+
+setlocal
+@rem Set VS variables (uses Visual Studio 2013)
+@call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86
+
+@rem Build the C# native extension
+msbuild ..\..\vsprojects\grpc.sln /t:grpc_csharp_ext || goto :error
+
+msbuild Grpc.sln /p:Configuration=Debug || goto :error
+msbuild Grpc.sln /p:Configuration=Release || goto :error
+endlocal
+
+goto :EOF
+
+:error
+echo Failed!
+exit /b %errorlevel% \ No newline at end of file