NullReferenceException in F# interactive #15888
-
I'm using
Everything blowns up at the last step:
Everything is working if I just execute the same code as normal console app Why I'm getting this error when I'm doing that in F# interactive? |
Beta Was this translation helpful? Give feedback.
Answered by
inosik
Aug 31, 2023
Replies: 2 comments
-
The problem is that you're referencing the #r @"C:\Users\micha\.nuget\packages\microsoft.data.sqlclient\5.1.0\lib\net6.0\Microsoft.Data.SqlClient.dll"
// or
#r "nuget: microsoft.data.sqlclient" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vzarytovskii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that you're referencing the
ref
assembly. They usually dothrow null
in every method body. Try this instead: