2
votes

I am trying to use LINQPAD 4 to test HTML Parsing using F# and the FSharp.Data library. I proceeded as follows:

  • I created a new F# Program in LINQPad
  • Pressed F4 and added FSharp.Data as a NuGet package

I then tried to compile and run the following program in LINQPad

open FSharp.Data    
let results = HtmlDocument.Load("http://www.google.co.uk/search?q=FSharp.Data")
results.Dump()
  • This returns a error telling me I need the assembly 'FSharp.Core, Version=4.3.0.0.
  • I then press F4 and add the required FSharp.Core assembly
  • I now get the following compiler error :

error FS1222: When mscorlib.dll or FSharp.Core.dll is explicitly referenced the --noframework option must also be passed

1

1 Answers

1
votes

This appears to be an issue with LINQPad which will be addressed in the next release (At the time of posting I was using LINQPad Premium 4.51.03 and .NET version 4.5.1 running on Windows 7 Professional 64 bit)

See this post on the LINQPad forum