How do I access FSharp.Data.JsonExtensions?

Sorry if this question is a bit unclear. This was the best thing I could do in my state of confusion regarding packages in F # 4.0.

The book by Expert F# 4.0Don Sim, Adam Granich and Antonio Cisternino contains code that processes JSON data. Code starts with

open FSharp.Data
open FSharp.Data.JsonExtensions

I have it FSharp.Datainstalled in Visual Studio. However, the word "JsonExtensions" gets red squiggles under it, and the rest of the code does not compile.

Going to Add Referencesthe Solution Explorer I did not find the package FSharp.Data.JsonExtensions. I also looked under NuGetand did not find the package FSharp.Data.JsonExtensions. There is documentation for what assumes this is a module. However, using the point to Visual Studio, it does not appear under (there is only one entry: )JsonExtensions
FSharp.Data.Unit Systems

How can I make the code in this module available so that I can run the code in a book?

+4
source share
1 answer

, FSharp.Data( Foggy ). FSharp.Data, , . , Tools | Nuget Package Manager | Manage Nuget Packages for Solution FSharp.Data. VS:

Nuget the package

:

enter image description here

:

enter image description here

.fsx script, #r

#r @"..\packages\FSharp.Data.2.3.2\lib\net40\FSharp.Data.dll"

( nugetting), VS :

enter image description here

Send to F# Interactive, Visual F # Power Tools.

/ JSON: JSON, Newtonsoft JSON, FSharplu, Chiron FSPickler.

+3

Source: https://habr.com/ru/post/1671188/


All Articles