tags:

views:

225

answers:

2

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

+1  A: 

Had to add a reference. I guess I was too used to the C# template doing this for me.

James
+3  A: 

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.

Chris Smith