Error starting xunit test with unquote library and Visual Studio 2015 - method not found

Getting this error "System.MissingMethodException: method not found:" Swensen.Unquote.UnquotedExpression Swensen.Unquote.Operators.unquote (Microsoft.FSharp.Quotations.FSharpExpr) "in Visual Studio 2015. I tried it in Visual Studio 2013 and it works.

+7
unit-testing visual-studio f # xunit
source share
1 answer

You will need to add the assembly redirection to the app.config file associated with your unit test project. Something like this should do this:

<?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> 
+12
source share

All Articles