aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/pre_build_csharp.bat
blob: 853a8f4325542c6529013912556c9ed22ae5d1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@rem Performs nuget restore step for C#.

setlocal

@rem enter repo root
cd /d %~dp0\..\..

@rem Location of nuget.exe
set NUGET=C:\nuget\nuget.exe

if exist %NUGET% (
  %NUGET% restore vsprojects/grpc_csharp_ext.sln || goto :error
  %NUGET% restore src/csharp/Grpc.sln || goto :error
)

endlocal

goto :EOF

:error
echo Failed!
exit /b %errorlevel%