开发者

How to get MonoDevelop to compile F# projects?

开发者 https://www.devze.com 2023-03-14 08:49 出处:网络
The problem seems to be as follows, there compiler puts in a redundant reference to an assembly. I have no idea how to avoid this, there doesn\'t seem to be any field in MonoDevelop build options wher

The problem seems to be as follows, there compiler puts in a redundant reference to an assembly. I have no idea how to avoid this, there doesn't seem to be any field in MonoDevelop build options where this would be coming from:

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


In my case (MonoDevelop 2.4.2 with F# binding 2.4 on Mac OS X 10.6) I managed to compile F# project once I've explicitly added a reference to FSharp.Core.dll (4.0.0.0 here).

0

精彩评论

暂无评论...
验证码 换一张
取 消