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

前端 未结 8 2077
小蘑菇
小蘑菇 2020-12-15 03:51

I\'m trying to deploy a web application which uses F# 4.0 on Windows Server 2008.

It works on my computer where VS2010 is installed but it doesn\'t work on the serve

相关标签:
8条回答
  • 2020-12-15 04:14

    In my case, this was caused by a corrupted config. I removed every reference to F# in the *.fsproj and *.csproj files (including binding redirects), reinstalled the FSharp.Core package from NuGet, and everything worked out nicely.

    0 讨论(0)
  • 2020-12-15 04:17

    adding

    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    

    to the *.csproj file helped me with the same problem. https://msdn.microsoft.com/en-us/library/2fc472t2%28v=vs.110%29.aspx

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