System wide bindingRedirect for F# 4.0.0.0 to 4.3.0.0

前端 未结 2 569
遥遥无期
遥遥无期 2021-01-18 08:15

I have some xUnit tests which are failing with the common

Could not load file or assembly \'FSharp.Core, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=b         


        
相关标签:
2条回答
  • 2021-01-18 09:04

    By using NuGet, I added FSharp.Core.3 and it fixed my issue.

    0 讨论(0)
  • 2021-01-18 09:09

    I don't know xUnit, but if your unit test runner supports app.config files, you can just attach the config to the unit test assemblies (e.g. an app.config along the lines of what you get with a default F# console application template). If the test runner does not honor app.config, then I think the machine.config strategy is a decent one.

    0 讨论(0)
提交回复
热议问题