grpc/vsprojects
yang-g fb58d239ef Merge with head 2015-07-16 21:03:49 -07:00
..
gpr Initial checkin commit for lockfree stack. 2015-07-10 15:18:45 -07:00
gpr_test_util Updating the templates to create win64 projects. 2015-04-28 00:20:06 +02:00
grpc Add a version string and a function to retrieve it 2015-07-10 07:46:03 -07:00
grpc++ Merge with head 2015-07-16 21:03:49 -07:00
grpc++_unsecure Merge with head 2015-07-16 21:03:49 -07:00
grpc_cpp_plugin provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
grpc_csharp_ext Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
grpc_csharp_plugin provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
grpc_objective_c_plugin provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
grpc_plugin_support Add a test that headers are properly in build.json 2015-06-25 06:58:00 -07:00
grpc_python_plugin provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
grpc_ruby_plugin provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
grpc_test_util Add a test that headers are properly in build.json 2015-06-25 06:58:00 -07:00
grpc_test_util_unsecure Updating the templates to create win64 projects. 2015-04-28 00:20:06 +02:00
grpc_unsecure Add a version string and a function to retrieve it 2015-07-10 07:46:03 -07:00
nuget_package bumped version of C# 2015-07-09 21:27:04 -07:00
.gitignore update gitignore 2015-05-27 13:14:13 -07:00
Grpc.mak Merge pull request #2383 from vjpai/lockfree-stack 2015-07-15 13:43:21 -07:00
README.md Fixing VS's documentation. 2015-07-11 22:50:09 +02:00
dummy.c Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
global.props Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
grpc.sln Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
grpc_protoc_plugins.sln provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
make.bat tiny fixups 2015-04-20 19:20:50 -07:00
openssl.props Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
protobuf.props Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00
protoc.props provide VS solution for building protoc plugins 2015-05-27 12:54:15 -07:00
winsock.props big refactoring of visual studio projects, started using nuget 2015-04-20 19:18:22 -07:00
zlib.props Adding grpc++_unsecure project file, and adding better support for test projects. 2015-05-09 07:21:07 +02:00

README.md

This directory contains MS Visual Studio project & solution files.

#Supported Visual Studio versions

Currently supported versions are Visual Studio 2013 (our primary focus) and 2010.

#Building We are using NuGet to pull zlib and openssl dependencies. If you don't have Visual Studio NuGet plugin installed, you'll need to download nuget.exe from the web and manually restore the NuGet packages.

> REM Run from this directory.
> REM No need to do this if you have NuGet visual studio extension.
> nuget restore grpc.sln

After that, you can build the solution using one of these options:

  1. open grpc.sln with Visual Studio and hit "Build".
  2. build from commandline using msbuild grpc.sln /p:Configuration=Debug

#Testing

Use run_tests.py, that also supports Windows (with a bit limited experience).

> REM Run from repository root.
> python tools\run_tests\run_tests.py -l c

Also, you can make.bat directly to build and run gRPC tests.

> REM Run from this directory.
> make.bat alarm_test

Building protoc plugins

For generating service stub code, gRPC relies on plugins for protoc (the protocol buffer compiler). The solution grpc_protoc_plugins.sln allows you to build Windows .exe binaries of gRPC protoc plugins.

  1. Open solution third_party\protobuf\vsprojects\protobuf.sln
  2. Accept the conversion to newer Visual Studio version and ignore errors about gtest.
  3. Build libprotoc in Release mode.
  4. Open solution vsprojects\grpc_protoc_plugins.sln and build it in Release mode. As a result, you should obtain a set of gRPC protoc plugin binaries (grpc_cpp_plugin.exe, grpc_csharp_plugin.exe, ...)