无法加载文件或程序集FSharp.Core,Version = 4.0.0.0 Azure Web Role
我已经在我的项目( https://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:asrcTFSpackagesFSharp.Core.4.0.0libFSharp.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并删除您的错误。
上述就是C#学习教程:无法加载文件或程序集FSharp.Core,Version = 4.0.0.0 Azure Web Role分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/cdevelopment/1013360.html