I created a .Net core 2.1 F# console application in Visual Studio 2017 on Windows. I would try the code in F# Interactive window. However, right-clicking the Dependencies will not show the command of sending the reference to F# Interactive window. Expanding the NuGet tree can find the DLL file names but they don't have the full path so I cannot manually run #r ".../full path/Akka.FSharp.dll";;.
- Where to find the DLL files?
- Is it possible to add the .Net core referenced DLL?
The code of the testing .Net core application.
open System
open Akka.FSharp
let system = System.create "MovieStreamingActorSystem" <| Configuration.load ()
type ProcessorMessage = ProcessJob of int * int * string
let processor (mailbox: Actor<ProcessorMessage>) =
let rec loop () = actor {
let! m = mailbox.Receive ()
printfn "Message %A" m
return! loop ()
}
loop ()
[<EntryPoint>]
let main argv =
let processorRef = spawn system "processor" processor
processorRef <! ProcessJob(1, 2, "3")
0