From d8932930baee983e141b8e30376f469656fee910 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Thu, 31 Aug 2017 17:03:48 -0400 Subject: [PATCH] Add script to restore nuget packages for debug and release --- tools/clientbuild.cmd | 10 +--------- tools/nuget_restore.cmd | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 tools/nuget_restore.cmd diff --git a/tools/clientbuild.cmd b/tools/clientbuild.cmd index c7c55c166..022c84a14 100644 --- a/tools/clientbuild.cmd +++ b/tools/clientbuild.cmd @@ -6,14 +6,6 @@ if not exist build\src\lib\spark_lib.vcxproj ( ) copy /y tools\cpp.build.props build\Directory.Build.Props > nul @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" > nul -call :restore src\client\spark -call :restore src\client\sparkcmd +msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore spark_client.sln msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary spark_client.sln -goto:eof - -:restore -pushd %1 -msbuild /p:platform=x64 /t:restore -popd -goto:eof diff --git a/tools/nuget_restore.cmd b/tools/nuget_restore.cmd new file mode 100644 index 000000000..70e266b2b --- /dev/null +++ b/tools/nuget_restore.cmd @@ -0,0 +1,7 @@ +@echo off +setlocal +cd %~dp0\.. +call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" +msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore spark_client.sln +msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /p:Configuration=release /t:restore spark_client.sln +