无法加载文件或程序集FSharp.Core,Version = 4.0.0.0 Azure Web Role

我已经在我的项目( http://mcapinet.codeplex.com/ )中为Mailchimp添加了NuGet包,这个包依赖于FSharp.Core,所以当我在我的本地机器上安装包时它已被添加为参考(和使用Azure模拟器)一切正常,但是当我在Azure上发布我的Cloud Service时(注意:我正在使用Visual Studio Online进行持续部署)我在访问网站时遇到了这个错误:

Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

并且FSharp.Core的属性“Copy local”设置为True。

我怎么解决这个问题?

编辑

在部署期间,我可以看到此警告:

 The project 'Interface.Web' is dependent on the following assembly: C:\a\src\TFS\packages\FSharp.Core.4.0.0\lib\FSharp.Core.dll. This assembly is not in the package. To make sure that the role starts, add this assembly as a reference to the project and set the Copy Local property to true 

我通过引用最新的FSharp.Core – 4.3.1.0并将Copy Local设置为’True’来修复此问题。

然后将此代码添加到web.config之间的任何位置

  

用于将所有旧版本绑定到新程序集的标记。

         

然后应该构建DLL并删除您的错误。