[英]How can I use FSharp.Core 4.3 with Visual Studio 2015 Community Edition
I want to use Deedle, but it complains like this: 我想使用Deedle,但它抱怨像这样:
Unknown build error, 'Cannot resolve dependency to assembly 'FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it has not been preloaded.
未知的生成错误,“无法解析对程序集的依赖关系” FSharp.Core,版本= 4.3.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a,因为尚未预加载。 When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'
使用ReflectionOnly API时,必须通过ReflectionOnlyAssemblyResolve事件预先加载或根据需要加载相关程序集。
Being an Android developer normally I'm a bit confused about VS dependencies. 通常,作为一名Android开发人员,我对VS依赖关系有些困惑。 I tried with the Package Manager Console, but it installs only 4.0.0.1 and doesn't know 4.3.0.0.
我尝试使用Package Manager Console,但它仅安装4.0.0.1,并且不知道4.3.0.0。
It seems it is solved with help from this question: 似乎可以通过以下问题解决此问题:
.NET runtime tries to load FSharp.Core 4.3.0 even if all projects reference 4.3.1 即使所有项目都引用4.3.1,.NET运行时也会尝试加载FSharp.Core 4.3.0。
In the App.config file there was a binding redirect already to 4.4.0.0. 在App.config文件中,已经有一个绑定重定向到4.4.0.0。 I don't know if I added it earlier or Deedle.
我不知道我是较早还是Deedle添加的。 When I changed it to 4.0.0.1, which is apparently and confusingly the latest version of FSharp and I could download it with NuGet, it started to work.
当我将其更改为4.0.0.1(显然是最新版本的FSharp)时,我可以使用NuGet下载它,它开始起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.