@echo off cd %~dp0 IF EXIST .nuget\NuGet.exe goto restore echo Downloading latest version of NuGet.exe... md .nuget @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '.nuget\NuGet.exe'" :restore IF EXIST packages\KoreBuild goto run .nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre .nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion :run packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*