3

Closed

Cannot use Microsoft.FSharp.Compatability.Lazy methods on System.Lazy values

description

Using the PowerPack built against .NET 2.0 on a machine with .NET 4.0 installed (2.0/3.5 may or may not also be installed, doesn't matter):
 

r "FSharp.Powerpack.dll"

r "FSharp.PowerPack.Compatibility.dll"

 
let x = lazy(1)
Lazy.force x
 
will result in an error like:
 
error FS0193: The module/namespace 'System' from compilation unit 'FSharp.Core' did not contain the val '{MemberParentMangledName = Some "Lazy`1";
MemberIsOverride = false;
LogicalName = "get_Value";
TotalArgCount = 1;}'
Closed May 29, 2013 at 3:28 PM by dsyme
Closing old suggestions since the PowerPack functionality in this drop of the PowerPack will not be expanded from this point.

Some requests for changes in functionality are also being closed for the same reason.

New functionality can be discussed in the versions of this code on GitHub:
http://github.com/fsharp/fsharpx
http://github.com/fsharp/powerpack
and the Math.NET F# support, for Matrix functionality.

comments

jackfoxy wrote Aug 21, 2012 at 11:48 PM

Seems to have only started since I installed .NET 4.5RC, and only on release compile, not on debug compile