I have a library that uses FParsec as a NuGet package. A separate C# project that references this library keeps throwing an error:
System.MissingMethodException: 'Method not found: 'ParserResult`2<!!0,Microsoft.FSharp.Core.Unit> FParsec.CharParsers.run(Microsoft.FSharp.Core.FSharpFunc`2<FParsec.CharStream`1<Microsoft.FSharp.Core.Unit>,FParsec.Reply`1<!!0>>, System.String)'.'
The C# project targets .Net 4.6.1, whereas the library that uses FParsec target 4.5. N.B. I still run into the same issue, even when this library target 4.6.1.
Auto-generate binding results is on. Moreover, I've tried to manually set the binding redirects, e.g.,
<dependentAssembly>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.6.2.0" newVersion="4.6.2.0" />
</dependentAssembly>
I expected the auto-generate bindings option to handle this correctly.