Created
June 19, 2015 21:24
-
-
Save Indy9000/71ad2d5b2d50c67a702b to your computer and use it in GitHub Desktop.
fsharp bootstrap script
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
// Step 0. Boilerplate to get the paket.exe tool | |
open System | |
open System.IO | |
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | |
if not (File.Exists "paket.exe") then | |
let url = "https://github.com/fsprojects/Paket/releases/download/0.31.5/paket.exe" | |
use wc = new Net.WebClient() | |
let tmp = Path.GetTempFileName() | |
wc.DownloadFile(url, tmp) | |
File.Move(tmp,Path.GetFileName url) | |
// Step 1. Resolve and install the packages | |
#r "paket.exe" | |
Paket.Dependencies.Install """ | |
source https://nuget.org/api/v2 | |
nuget FSharp.Data | |
nuget FSharp.Charting | |
""";; | |
// Step 2. Use the packages | |
#r "packages/FSharp.Data/lib/net40/FSharp.Data.dll" | |
#r "packages/FSharp.Charting/lib/net40/FSharp.Charting.dll" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment