如何让MonoDevelop编译F#项目?

时间:2011-06-19 04:48:46

标签: f# monodevelop

问题似乎如下,编译器放入对程序集的冗余引用。我不知道如何避免这种情况,在MonoDevelop构建选项中似乎没有任何字段可以来自:

Building: FSharpPractice (Debug|x86)

Building Solution FSharpPractice

Building: FSharpPractice (Debug|x86)

Performing main compilation...

C:\Program Files\FSharp-2.0.0.0\bin\fsc.exe --noframework --nologo
--target:exe
--out:"C:\Users\Alex Limonov\Documents\Projects\FSharpPractice\bin\Debug\FSharpPractice.exe"
--noframework
--debug-
--optimize-
--tailcalls-
-r:C:\Program Files\FSharp-2.0.0.0\bin\FSharp.Core.dll
-r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll
-r:"C:\Program Files\FSharp-2.0.0.0\bin\FSharp.Core.dll"
-r:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll"
C:\Users\Alex Limonov\Documents\Projects\FSharpPractice\Program.fs

Build complete -- 2 errors, 0 warnings

1 个答案:

答案 0 :(得分:0)

在我的情况下(MonoDevelop 2.4.2在Mac OS X 10.6上使用F#绑定2.4)一旦我明确添加了对FSharp.Core.dll(4.0.0.0)的引用,我设法编译了F#项目。