Skip to content

Instantly share code, notes, and snippets.

@MiloszKrajewski
Last active March 6, 2018 23:51
Show Gist options
  • Save MiloszKrajewski/3b34d74af72ba811a5e783cf121c6868 to your computer and use it in GitHub Desktop.
Save MiloszKrajewski/3b34d74af72ba811a5e783cf121c6868 to your computer and use it in GitHub Desktop.
Paket batch file / bootstrapper
@echo off
setlocal
set target=%~dp0\.paket
set paket=%target%\paket.exe
if not exist %paket% (
rmdir /q /s %temp%\nuget\paket.bootstrapper 2> nul
nuget install -out %temp%\nuget -excludeversion paket.bootstrapper
xcopy %temp%\nuget\paket.bootstrapper\tools\* %target%\
move %target%\paket.bootstrapper.exe %paket%
)
%paket% %*
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment