1

I need to reference FSharp.Core to a Visual Web Developer Express project (C#), but for some reason when I click "Add Reference" it doesn't exist on the ".NET" list. Also tried to search this DLL on C:\Program Files\Referenced Assemblies, didn't find anything.

I downloaded this DLL from somewhere, but when I add it, it throws that System.Tuple exists in both mscorelib and FSharp.Core.

I'm using Visual Web Developer Express 2010 with .NET Framework 4 (not client profile).

Any ideas?

asked Nov 9, 2010 at 12:42
1
  • 5
    Is it possible that you're referencing the .NET 2.0 version of the F# library? It defines its own tuple types since the framework didn't have them until .NET 4.0. I'd recommend looking for the .NET 4.0 version of FSharp.Core on your machine and referencing that, or re-downloading and installing F#. Commented Nov 9, 2010 at 13:33

1 Answer 1

3

What @kvb said in his comment. The version you want probably lives in a location like

C:\Program Files\Reference Assemblies\Microsoft\FSharp2円.0\Runtime\v4.0\FSharp.Core.dll

Be sure you have the "v4.0" part.

answered Nov 9, 2010 at 15:27
2
  • I don't have FSharp directory in C:\Program Files\Reference Assemblies\Microsoft\ Commented Nov 9, 2010 at 15:33
  • Then you probably need to install the F# CTP, the second link here: msdn.microsoft.com/en-us/fsharp/cc835251.aspx Commented Nov 9, 2010 at 15:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.