Last active
April 24, 2023 21:24
-
-
Save markheath/5af895d9e989d0cd0015 to your computer and use it in GitHub Desktop.
Auto-download nuget.exe in F# FAKE build batch file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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