Domanda

I just started with F#. I am with MS VS 2012.

I am trying to follow some MSDN examples (f.ex: http://msdn.microsoft.com/en-us/library/vstudio/hh225374(v=vs.110).aspx) and I have already hit a snag: namespaces that should in theory be accessible are in fact out of reach.

open System.Data

results in "The namespace 'Data' is not defined.

open Microsoft.FSharp.Data.TypeProviders

generates in "The namespace 'TypeProviders' is not defined.

Not sure what I should do. Do the packages need to be installed somewhere? The MSDN tutorial does not mention this.

Thanks.

È stato utile?

Soluzione

Right-click on the project and select 'Add reference…', then under 'Assemblies', select 'Extensions'. Then you should find FSharp.Data.TypeProviders in the assembly list.

Alternatively, you can install the FSharp.Data.TypeProviders NuGet package:

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top