Skip to content

Instantly share code, notes, and snippets.

Created Jun 19, 2015
What would you like to do?
fsharp bootstrap script
// 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 = ""
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 """
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