简体   繁体   English

如何将FSharp.Core 4.3与Visual Studio 2015 Community Edition一起使用

[英]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.

相关问题 如何为Visual Studio 2015 Community Edition使用Type.GetTypeFromProgID() - How to use Type.GetTypeFromProgID() for Visual Studio 2015 Community Edition Visual Studio 2015社区版在启动时崩溃 - Visual Studio 2015 community edition crashes at startup 如何在不必包含FSharp.Core的情况下将字典从F#返回到C#? - How can I return a Dictionary from F# to C# without having to include FSharp.Core? 无法在Visual Studio 2015 Community Edition中打开Windows Phone 8.1项目 - Can't open Windows Phone 8.1 project in Visual Studio 2015 Community Edition Visual Studio 2015 Community Edition无法下载新许可证 - Visual Studio 2015 Community Edition failed to download new license 安装Visual Studio 2015社区版后的几个问题 - Few issues after installing Visual Studio 2015 Community edition CS0246 visual studio Community Edition 2015 缺少参考资料? - CS0246 visual studio community edition 2015 missing reference? 从Visual Web Developer Express引用FSharp.Core - Referencing FSharp.Core from Visual Web Developer Express 如何从 Visual Studio 2015 社区版打开新的“ASP.NET Web 应用程序”? - How to open new "ASP.NET Web Application" from visual studio 2015 community edition? 隐式 FSharp.Core 引用如何在 fsproj 中工作? - How does implicit FSharp.Core reference work in an fsproj?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM