How to obtain F# powerpack for F# 3.0

自作多情 提交于 2019-12-06 02:06:29

问题


I'm using VS11 Beta on Win 8 Consumer Preview. After install VS11 Beta I have F# 3.0 SDK installed. But I'm not able to find a compatible FSharp.PowerPack.dll as CodePlex only provides PowerPack for F# 2.0.

Any idea how to deal with this?


回答1:


You can compile the PowerPack sources on your own (against F# 3.0), to make your own copy of the library.

Alternatively, I think a binding redirect in your final foo.exe.config, along the lines of

https://stackoverflow.com/a/9648673/19299

but redirecting 2.0.0.0 (that PowerPack uses) to 4.3.0.0 (in VS11 SDK) will also work.




回答2:


In addition to what Brian said, I think that the easiest way to use functionality from the F# PowerPack is to just copy the source code for the parts that you're using to your project.

The PowerPack library contains quite a wide range of functionality and I typically only use one or two parts. If you're looking for components like lazy list, parallel collections (PLINQ), hash multi-map or async extensions, you can usually just copy one or two files and you don't have to build the whole library.

(Also note that most of the LINQ functionality from F# PowerPack has moved to the F# core library in F# 3.0)




回答3:


Don Syme has recently uploaded F# PowerPack 4.0.0.0 which is compiled against F# 3.0.

There is an MSI installer for Windows. There is also a zip archive which even worked with MonoDevelop 3.0/F# 3.0 when I tried to use it on Mac OS X. So much time and efforts are saved especially when one needs to use fslex/fsyacc for parsing.




回答4:


Update for F# 4.0: At this point the F# PowerPack - or at least the remnants thereof - are on GitHub. The major components have been spun off into their own projects. (FsLex/FsYacc is what brought me here too.)



来源:https://stackoverflow.com/questions/9662317/how-to-obtain-f-powerpack-for-f-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!