Visual studio 2012 System.MissingMethodException:未找到方法:';Microsoft.FSharp.Core.FSharpFunc`2
在Windows机箱中启动树冠测试时,我遇到了一个问题:Visual studio 2012 System.MissingMethodException:未找到方法:';Microsoft.FSharp.Core.FSharpFunc`2,visual-studio-2012,f#,missingmethodexception,canopy-web-testing,Visual Studio 2012,F#,Missingmethodexception,Canopy Web Testing,在Windows机箱中启动树冠测试时,我遇到了一个问题: Unhandled Exception: System.MissingMethodException: Method not found: 'Microsoft .FSharp.Core.FSharpFunc`2<System.String,System.String> canopy.core.get_xpath()'. at <StartupCode$UITest>.$Program.main@() 如何准确添
Unhandled Exception: System.MissingMethodException: Method not found: 'Microsoft
.FSharp.Core.FSharpFunc`2<System.String,System.String> canopy.core.get_xpath()'.
at <StartupCode$UITest>.$Program.main@()
如何准确添加此重新映射以解决此问题?已成功使其与此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.0.0" newVersion="4.4.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
这一定是因为我从未安装过F#,所以我使用的是VS2012(v3.0)附带的版本。我知道我知道,我应该升级到3.1,甚至4.0。可能重复的可能重复的可能重复的为其他人找到这个
misigMethodException
非常常见,它有自己的特点。请先阅读这些内容,然后再询问新内容。另外,请查看app.config中与程序集绑定重定向相关的F#。
<?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.0.0" newVersion="4.4.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>