如何在FParsec专业版中运行VS2013?
我尝试使用以下nuget包:
我尝试自己编译https://bitbucket.org/fparsec/main的源代码,并使用生成的dll:、FParsec.dll、和。
但无论以哪种方式,我都会得到运行教程代码的以下异常:
System.MissingMethodException
Method not found:
Microsoft.FSharp.Core.FSharpFunc`2<FParsec.CharStream`1<!!0>,FParsec.Reply`1<Double>> FParsec.CharParsers.pfloat()"谁能提供一个逐步的解决方案,让FParsec在VS2013上运行?
这是我试图运行的代码:
open FParsec
[<EntryPoint>]
let main args =
let str s = pstring s // This line works
let floatBetweenBrackets = str "[" >>. pfloat .>> str "]" // This line breaks
Console.ReadKey() |> ignore
0发布于 2014-05-12 12:21:04
尝试将App.config添加到您的项目中,内容如下:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0" />
</dependentAssembly>
</runtime>
</configuration>检查您的版本的FSharp.Core,并在必要时修补此片段。
https://stackoverflow.com/questions/23608713
复制相似问题