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

后端 未结 1 543
无人及你
无人及你 2021-01-12 10:43

I\'ve added NuGet package for Mailchimp in my project (http://mcapinet.codeplex.com/) this package has dependence on FSharp.Core, so it has been added as reference when I in

相关标签:
1条回答
  • 2021-01-12 11:01

    I have fixed this issue by referencing the latest FSharp.Core - 4.3.1.0 and setting Copy Local to 'True'.

    Then add this code to your web.config anywhere between the

    <configuration></configuration>
    

    tags to bind all older versions to the new assembly.

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="FSharp.Core" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
          <bindingRedirect oldVersion="0.0.0.0-4.3.1.0" newVersion="4.3.1.0"/>
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
    

    The dll should then be build and your error should be removed.

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