Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Data missing in F# project

Tags:

f#

system.data

I'm targeting .NET 3.5, but cannot get System.Data to come up in Intellisense. What am I missing?

like image 908
James Avatar asked Jun 05 '26 21:06

James


1 Answers

Yes, this is 'by design' and not a bug in F#. By default the project templates we ship (in Visual Studio 2010) add the following references:

  • mscorlib.dll - Things like 'string'
  • FSharp.Core.dll - All things F#
  • System.dll - Things like System.IO
  • System.Core.dll - .NET 3.5 additions, like HashSet<_>
  • System.Numerics.dll - For F#'s BigInteger type

For any specific libraries like ADO.NET, WPF, WCF, etc. you will need to add the specific assembly references you need.

like image 167
Chris Smith Avatar answered Jun 08 '26 16:06

Chris Smith