Jan Tattermusch | dd95e9d | 2015-05-14 18:25:20 -0700 | [diff] [blame] | 1 | @rem Convenience script to build gRPC C# from command line |
| 2 | |
| 3 | setlocal |
Jan Tattermusch | b00aa67 | 2015-06-01 15:48:03 -0700 | [diff] [blame] | 4 | |
| 5 | @rem enter this directory |
| 6 | cd /d %~dp0 |
| 7 | |
Jan Tattermusch | dd95e9d | 2015-05-14 18:25:20 -0700 | [diff] [blame] | 8 | @rem Set VS variables (uses Visual Studio 2013) |
| 9 | @call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86 |
| 10 | |
| 11 | @rem Build the C# native extension |
Jan Tattermusch | 0fcb2f2 | 2015-06-01 10:46:43 -0700 | [diff] [blame] | 12 | msbuild ..\..\vsprojects\grpc.sln /t:grpc_csharp_ext /p:PlatformToolset=v120 || goto :error |
Jan Tattermusch | dd95e9d | 2015-05-14 18:25:20 -0700 | [diff] [blame] | 13 | |
| 14 | msbuild Grpc.sln /p:Configuration=Debug || goto :error |
| 15 | msbuild Grpc.sln /p:Configuration=Release || goto :error |
| 16 | endlocal |
| 17 | |
| 18 | goto :EOF |
| 19 | |
| 20 | :error |
| 21 | echo Failed! |
Jan Tattermusch | 031c7ee | 2015-05-14 18:32:17 -0700 | [diff] [blame] | 22 | exit /b %errorlevel% |