从Windows应用商店/ Metro C#应用程序引用F#库

时间:2012-11-08 01:54:30

标签: c# f# microsoft-metro windows-store

我正试图在F#中做一些SharpDX。 SharpDX无法导入可移植库,只能导入标准.NET库。

使用a glaring bug来引用C#应用程序中的F#库,我现在遇到了另一个问题:

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

这是一个熟悉的例外,但我不知道在Visual Studio 2012中会导致什么。

1 个答案:

答案 0 :(得分:3)

据我所知,你只能在Windows Store项目中引用F#可移植库,而不是常规f#dll,这是第一件事。
第二个,正如错误所说 - 你必须引用FSharp.Core库。它位于:

  

C:\ Program Files(x86)\ Reference   组件\微软\ FSharp \ 3.0 \ Runtime.NETPortable \ FSharp.Core.dll

我在这里回答了类似的问题,提供了更多信息:
https://stackoverflow.com/a/13064798/574062

相关问题