Skip to content

Instantly share code, notes, and snippets.

@tobyqin
Created April 18, 2016 05:45
Show Gist options
  • Save tobyqin/e957afcbb0d13210fbf144c48bde2864 to your computer and use it in GitHub Desktop.
Save tobyqin/e957afcbb0d13210fbf144c48bde2864 to your computer and use it in GitHub Desktop.
@echo off
set "targetDir=%~dp0..\"
set nuget=%~dp0..\Tools\@Executable\nuget.exe
echo =========================================
echo Restore Nuget packages for all solutions.
echo.
echo In Path: %targetDir%
echo By Tool: %nuget%
echo =========================================
echo.
cd %targetDir%
for /r %%a in (*.sln) do (
echo Now Restore: %%~dpnxa
"%nuget%" restore "%%~dpnxa"
)
echo All done!
timeout /t 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment