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

前端 未结 8 2106
小蘑菇
小蘑菇 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条回答
  •  -上瘾入骨i
    2020-12-15 03:52

    Just for anybody stumbling upon this after updating to VS 2019:

    In my case, I have a C# console app that references an F# class library. All is good in VS 2017 but in VS 2019 I suddenly get such assembly loading errors (for FSharp.Core v4.7.0).

    The reason behind the issue was that the FSharp.Core DLL somehow didn't get copied to the bin folder of the console app (though IMO it should, but it doesn't bother VS 2017). Since there is no copy local or similar option for a NuGet package I just added it to the console app as well. Not nice, but works.

提交回复
热议问题