dsyme / guido-learns-fsharp

101 stars 20 forks source link

Loading modules in fsx #2

Closed marcellourbani closed 3 years ago

marcellourbani commented 3 years ago

To load FSharp.Data In the fsx playground I had to add a #r directive. This was a bit hard to find out for a novice, I think it deserves a mention in the task definition. Will send a PR shortly

// first attempt was with hardcoded path, works but is pretty bad
// #r "/home/user/.nuget/packages/fsharp.data/4.1.1/lib/netstandard2.0/FSharp.Data.dll"
#r "nuget:FSharp.Data"
open FSharp.Data

Thanks for this tutorial, was good fun

dsyme commented 3 years ago

To load FSharp.Data In the fsx playground I had to add a #r directive. This was a bit hard to find out for a novice, I think it deserves a mention in the task definition. Will send a PR shortly

Yes in the tutorial I taught Guido to go and look at https://nuget.org and search for a package at this point, which includes a tab containing the reference text.

image

This introduces the user to the package ecosystem.