f# - Using a custom version of FSharp.Core.dll -
i've been poking around fsharp compiler source code seek build wp7 version of fsharp.core (fsharp.core windows phone 7.1 , f# 3.0), , @ 1 point gave , started trying create portable version work wp7 instead. added fx_no_structural_equality define portable-net4+sl4+wp71+win8 target framework, seems what's causing not work @ runtime, , tried replace fsharp.core.dll in c:\program files (x86)\reference assemblies\microsoft\fsharp\3.0\runtime\.netportable custom version. errors when compiling in visual studio:
warning 1 primary reference "fsharp.core" not resolved because has indirect dependency on framework assembly "mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" not resolved in targeted framework. ".netportable,version=v4.0,profile=profile47". resolve problem, either remove reference "fsharp.core" or retarget application framework version contains "mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089". c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets 1578 5 fsharp.data.portable warning 3 primary reference "fsharp.core" not resolved because has indirect dependency on framework assembly "system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" not resolved in targeted framework. ".netportable,version=v4.0,profile=profile47". resolve problem, either remove reference "fsharp.core" or retarget application framework version contains "system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089". c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets 1578 5 fsharp.data.portable warning 2 primary reference "fsharp.core" not resolved because has indirect dependency on framework assembly "system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" not resolved in targeted framework. ".netportable,version=v4.0,profile=profile47". resolve problem, either remove reference "fsharp.core" or retarget application framework version contains "system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089". c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets 1578 5 fsharp.data.portable the problem portable fsharp.core comes vs2012 depends on portable 2.0.5.0 versions of mscorlib.dll, system.dll , system.core.dllthose assemblies, 1 compile source depends on non-portable 4.0.0.0 versions. has built portable version source?
what add:
<otherflags>$(otherflags) --simpleresolution -r:"pathtothecorrectmscorlib/mscorlib-runtime.dll" </otherflags>
to fsharp.source.targets file. right file after <defineconstants> elements. should cause compilation phase utilize version of mscorlib specify rather default version specified msbuild target. (obviously replace pathtothecorrectmscorlib/mscorlib-runtime.dll right 1 :) )
f# mono portable-class-library
No comments:
Post a Comment