FSharp.Data Csv.Load() failed with Only web locati

2019-07-21 11:01发布

I have the following code:

#r "../packages/FSharp.Data.2.0.9/lib/portable-net40+sl5+wp8+win8/FSharp.Data.dll"

open FSharp.Data

let trainData = CsvFile.Load("../resources/Train.csv")
let rowCount = trainData.Rows |> Seq.length

And I am getting this exception

System.Exception: Only web locations are supported

I am using VS2012. Has anyone seen this before?

标签: f# f#-data
1条回答
三岁会撩人
2楼-- · 2019-07-21 11:38

I changed it to

#r "../packages/FSharp.Data.2.0.9/lib/net40/FSharp.Data.dll"

and it worked

Hope this helps someone

查看更多
登录 后发表回答