Skip to content

NullReferenceException in F# interactive #15888

Closed Answered by inosik
michaelsamoilenko asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that you're referencing the ref assembly. They usually do throw null in every method body. Try this instead:

#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"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vzarytovskii
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants