Last active
November 22, 2016 19:57
-
-
Save mynkow/e6f0e550fcacc268dd1e9b743e17d344 to your computer and use it in GitHub Desktop.
F#
This file contains 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 | |
SETLOCAL | |
SET NUGET=NuGet\NuGet.exe | |
SET FAKE=FAKE\tools\Fake.exe | |
echo Downloading NuGet.exe... | |
IF NOT EXIST NuGet md NuGet | |
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile '%NUGET%'" | |
echo Downloading latest version of NuGet.Core... | |
IF NOT EXIST NuGet.Core %NUGET% "install" "NuGet.Core" "-ExcludeVersion" | |
echo Downloading FAKE... | |
IF NOT EXIST FAKE %NUGET% "install" "FAKE" "-ExcludeVersion" "-Version" "4.4.4" | |
%FAKE% test.fsx target=test -st |
This file contains 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
#I @"./FAKE/tools/" | |
#r @"FAKE/tools/FakeLib.dll" | |
#r @"./Nuget.Core/lib/net40-Client/NuGet.Core.dll" | |
open System | |
open System.Collections.Generic | |
open System.IO | |
open Fake | |
Target "Test" (fun _ -> | |
printfn "==============================================================================" | |
global.NuGet.ZipPackage(@"Docker.DotNet.2.124.3.nupkg").GetFiles() |> Seq.iter(fun x -> printfn "%s" x.Path ) | |
) | |
RunParameterTargetOrDefault "target" "test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment