Вопрос

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.

Это было полезно?

Решение

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:

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top