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?
-
5Is 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#.kvb– kvb2010年11月09日 13:33:46 +00:00Commented Nov 9, 2010 at 13:33
1 Answer 1
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.