我有一段时间的F#Powerpack.它跑得很好.但是几天前,我不知道我做了什么,每当我编译项目并运行它时,我都会收到错误
Method not found: 'System.Object Microsoft.FSharp.Text.Parsing.Tables`1.Interpret(Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Text.Lexing.LexBuffer`1<Char>,!0>, Microsoft.FSharp.Text.Lexing.LexBuffer`1<Char>, Int32)'.
Run Code Online (Sandbox Code Playgroud)
我也尝试过我的笔记本电脑.然后我想,这可能是我的代码中的错误.所以我开始了一个新项目,F#Parsed Language Starter Kit(你在网上找到的入门套件),它失败并出现同样的错误.我尝试重新安装F#Powerpack但错误仍在继续.
我在大学(Dreamspark)的Windows Forms C#和Visual Studio 2013中有解决方案.当我尝试运行我的解决方案时,我收到一个错误:
错误2命名空间"Microsoft.VisualBasic"中不存在类型或命名空间名称"PowerPacks"(您是否缺少程序集引用?)
我在参考管理器中找不到引用:

我该如何修理?
我需要安装使用F#powerpack.我在Mac上使用单声道版本2.10.2.
mono --version
Mono JIT compiler version 2.10.2 (tarball Mon Apr 18 09:14:01 MDT 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: normal
Notification: kqueue
Architecture: x86
Disabled: none
Misc: debugger softdebug
LLVM: yes(2.9svn-mono)
GC: Included Boehm (with typed GC)
Run Code Online (Sandbox Code Playgroud)
从这里下载powerpack zip文件.
将文件解压缩到目录~/bin.
~/bin/FSharpPowerPack-1.9.9.9/bin到PATH.我还将它添加到MONO_PATH以防万一.(我不确定这是否有必要)~/bin/FSharpPowerPack-1.9.9.9/bin/gac,请使用该命令sudo gacutil -i <ALL_THE_FILES_IN_DLL>.dll 我使用此页面中的示例代码进行了测试.我把它命名为linq.fs
open Microsoft.FSharp.Linq
let adderExpr = <@ fun i -> i + 1 …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用基本程序来动态编译和运行f#代码.我试图运行以下代码:
open System
open System.CodeDom.Compiler
open Microsoft.FSharp.Compiler.CodeDom
// Our (very simple) code string consisting of just one function: unit -> string
let codeString =
"module Synthetic.Code\n let syntheticFunction() = \"I've been compiled on the fly!\""
// Assembly path to keep compiled code
let synthAssemblyPath = "synthetic.dll"
let CompileFSharpCode(codeString, synthAssemblyPath) =
use provider = new FSharpCodeProvider()
let options = CompilerParameters([||], synthAssemblyPath)
let result = provider.CompileAssemblyFromSource( options, [|codeString|] )
// If we missed anything, let compiler show us what's the problem
if …Run Code Online (Sandbox Code Playgroud) 我有关于授权FSharp PowerPack的问题.
在codeplex.com的项目页面上是Apache license 2.0.同时,安装后,在带有PowerPack的文件夹中,您可以找到license.rtf,声称该产品是在MS-PL下分发的.
F#PowerPack在哪个许可证下分发?