The behavior of F# Interactive can be a bit odd in this case. In general, I think that things work better when you use #I
to include the path with referenced assemblies in the resolution context and then reference the libraries by name using #r
. So if you have a library Fmat.Numerics.dll
in a folder C:\libs
and it references another library another.dll
then you can do:
#I "C:\\libs"
#r "another.dll"
#r "Fmat.Numerics.dll`
The first line means that F# Interactive will automatically look in the folder with your libraries (this can be relative path to your script location too) - as a result, the next two lines can just reference the libraries by their file names.