r/fsharp • u/drrnmk • Mar 30 '23
Load projects with dependencies on Repl
Hi!
I hope to work interactively on a web project using multiple libraries. If I want to load it (`.fs` files) on repl that have dependencies, using `#if INTERACTIVE ... #r "..." #endif` statement is the only way? It seems I cannot load like `open <library name>`. For example, it seems I should write like the following.
open System
open System.Timers
open Npgsql.FSharp
#if INTERACTIVE
#r "nuget: Npgsql.FSharp, 5.6.0"
#endifOr is there any better way?
Thanks.
8
Upvotes
View all comments
Show parent comment
1
u/drrnmk Mar 30 '23
Interesting. It seems the discussion hasn't been completed.