获取此错误" System.MissingMethodException:找不到方法:' Swensen.Unquote.UnquotedExpression Swensen.Unquote.Operators.unquote(Microsoft.FSharp.Quotations.FSharpExpr)"在Visual Studio 2015中。在Visual Studio 2013中尝试它并且它可以工作。
答案 0 :(得分:12)
您需要将程序集重定向添加到与单元测试项目关联的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="4.3.1.0"
newVersion="4.4.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>