Skip to content

Instantly share code, notes, and snippets.

@markheath
Last active April 24, 2023 21:24
Show Gist options
  • Save markheath/5af895d9e989d0cd0015 to your computer and use it in GitHub Desktop.
Save markheath/5af895d9e989d0cd0015 to your computer and use it in GitHub Desktop.
Auto-download nuget.exe in F# FAKE build batch file
@echo off
cls
if not exist ".\.nuget" mkdir ".\.nuget"
if not exist ".\.nuget\nuget.exe" powershell -Command "Invoke-WebRequest https://www.nuget.org/nuget.exe -OutFile .\.nuget\nuget.exe"
".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion"
"packages\FAKE\tools\Fake.exe" build.fsx %*
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment