Unable to reference FSharp.Core in LINQPad when referencing the FSharp.Data package

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

I am new to LINQPad and think I may be missing something obvious.

Comments

  • I've fixed the compiler client for the next LINQPad build so that it adds the --noframework option if you reference FSharp.Core.dll. However, I cannot reproduce your first problem: I don't get the message saying I need to reference FSharp.Core.dll.

    What version of LINQPad and what .NET version are you running?
  • Hi Joe, thanks for the reply.

    I am using LINQPad Premium 4.51.03 and .NET version 4.5.1 running on Windows 7 Professional 64 bit.
  • Hi Joe

    Is the new build with these fixes available somewhere? I've run in same issue with --noframework.

    Thanks
  • Ah, got the latest beta and it works.
    Thanks!