The problem I have experienced just now is when I am using System.Data.DataTable within a record type like so:
type checkResp = { resp : System.Data.DataTable }
The problem occurs when trying to use this record. It is unusable, intellisense reports that 'resp' is not a record field, and checkResp cannot be used within a type signature, further more hovering over the type name in Visual Studio shows that it is not processed by Intellisense. This leads us to believe there is an error in how the record type, but there is no error anywhere within the record, and strangely, it compiles in FSI fine!
I traced back the problem by trying to use DataTable() elsewhere in my code and seeing a popup saying that I need System.Xml.dll, so I added that reference and suddenly all errors went away. I believe this type of information should be surfaced at the time of defining the record type, as it turned into a 15 minute debug trip for a simple adding of a reference.
The problem I have experienced just now is when I am using System.Data.DataTable within a record type like so:
type checkResp = { resp : System.Data.DataTable }
The problem occurs when trying to use this record. It is unusable, intellisense reports that 'resp' is not a record field, and checkResp cannot be used within a type signature, further more hovering over the type name in Visual Studio shows that it is not processed by Intellisense. This leads us to believe there is an error in how the record type, but there is no error anywhere within the record, and strangely, it compiles in FSI fine!
I traced back the problem by trying to use DataTable() elsewhere in my code and seeing a popup saying that I need System.Xml.dll, so I added that reference and suddenly all errors went away. I believe this type of information should be surfaced at the time of defining the record type, as it turned into a 15 minute debug trip for a simple adding of a reference.