Where to keep nuget packages for .fsi scripts? (F#)

434 views Asked by At

I know that I can use #r <pkg> but without a directory to hold a project where should I install /keep the dependencies?

I mean, if I'm using F# I can dotnet add package <pkg> from the project folder but with .fsx I was expecting to not have a "project folder", how to install packages then?

1

There are 1 answers

3
Fyodor Soikin On

You don't have to worry about downloading and storing the packages somewhere, you can make the interpreter take care of that for you by referencing Nuget packages, not files on your local system. This would look something like this:

#r "nuget: <pkg>"

open Package.Whatever

...

Related Questions in F#