Create a solution with two Console Application projects:
ConsoleApplication1\Program.fs:
module SharedValue
let hello = "Hello" |> id
ConsoleApplication2\Program.fs (references ConsoleApplication1)
match SharedValue.hello with
| null -> printfn "SharedValue.hello is null!"
| _ -> printfn "all good"
Expected output: all good
Actual output: SharedValue.hello is null!
needless to say, getting a null value from an F# project is quite surprising.
Changing the type of ConsoleApplication1 to a Library fixes this.
Create a solution with two Console Application projects:
ConsoleApplication1\Program.fs:
ConsoleApplication2\Program.fs (references ConsoleApplication1)
Expected output:
all goodActual output:
SharedValue.hello is null!needless to say, getting a null value from an F# project is quite surprising.
Changing the type of ConsoleApplication1 to a Library fixes this.