فهرست منبع

Restore dependencies in buildall.bat

Without this, even the C++ code fails to build (from a clean clone) due to missing includes.
Note that this requires that nuget.exe is on the path. Better alternatives welcomed...
Jon Skeet 10 سال پیش
والد
کامیت
c283409d84
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      src/csharp/buildall.bat

+ 6 - 0
src/csharp/buildall.bat

@@ -8,6 +8,12 @@ cd /d %~dp0
 @rem Set VS variables (uses Visual Studio 2013)
 @call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86
 
+@rem Fetch all dependencies
+nuget restore ..\..\vsprojects\grpc.sln || goto :error
+nuget restore ..\..\vsprojects\grpc_csharp_ext.sln || goto :error
+nuget restore ..\..\vsprojects\grpc_protoc_plugins.sln || goto :error
+nuget restore Grpc.sln || goto :error
+
 @rem Build the C# native extension
 msbuild ..\..\vsprojects\grpc_csharp_ext.sln /p:PlatformToolset=v120 || goto :error