Skip to main content

Could not load file or assembly FSharp.Core, Version=4.0.0.0

Trying to run a program that was compiled with an older version of the FSharp framework. In my case I had mixed versions of the FSharp.Core in my references. Well, this is easily fixed by adding the following to executing program's App.config.

<configuration>
    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
          <bindingRedirect oldVersion="4.0.0.0" newVersion="4.3.0.0"/>
          <bindingRedirect oldVersion="2.3.5.0" newVersion="4.3.0.0"/>
          <bindingRedirect oldVersion="2.0.0.0" newVersion="4.3.0.0"/>
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
</configuration>

Happy coding!

comments powered by Disqus