f# - Why doesn't bindingRedirect affect FSharp.Core version -
i have unit test project targets f# runtime 4.4.1. has app.config bindingredirect section:
<dependentassembly> <paket>true</paket> <assemblyidentity name="fsharp.core" publickeytoken="b03f5f7f11d50a3a" culture="neutral" /> <bindingredirect oldversion="0.0.0.0-65535.65535.65535.65535" newversion="4.4.1.0" /> </dependentassembly>
however, when run tests runtime error:
could not load file or assembly 'fsharp.core, version=4.3.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. system cannot find file specified.
i wonder why there attempt load fsharp.core 4.3.0.0 since bindingredirect specifies different version.
apparently problem xunit configutaration. following section in app.config changed appdomain configuration:
<appsettings> <add key="xunit.appdomain" value="required" /> </appsettings>
then test runner complained missing xunit.execution.desktop.dll. once file placed in execution directory, xunit runner honored app.config bindingredirect settings.
Comments
Post a Comment