2013-02-03 45 views
2

我試圖從源代碼安裝f#3.0使用mono 3代替.net工具,因爲我有net 4.0,我需要一個版本> = 4.5(僅適用於windows vista和Windows 8中)使用mono安裝f#3 windows xp

當我嘗試建立fsharp-原build.proj..I得到這個問題變成了:

MSBUILD : warning MSB4056: Se debe llamar al motor de MSBuild en Singlethread-Apartment. El modelo de subprocesos actual es '"MTA". 
basically it's saying than I need change the msbuild engine to singlethread instead mta...I can't found how do this... 

當我嘗試建立fsharp庫-build.proj我得到這個:

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): 
warning MSB3257: La referencia principal "C:\fsh\fsharp\lib\debug\4.0\FSharp.Core.dll" no se pudo resolver porque su versión es superior "4.3.0.0" a la existente en la versión de .NET Framework de destino actual. La que se encuentra en la versión de .NET Framework de destino actual es "4.0.0.0". 

************************************************************************************ 
I can't understand why is referencing to net framework when I'm using xbuild with mono 3 





C:\fsh\fsharp\src\fsharp\FSharp.Data.TypeProviders\TypeProviderEmit.fs(25,49): error FS0039: The type 'TypeProviderEditorHideMethodsAttribute' is not defined 

C:\fsh\fsharp\src\fsharp\FSharp.Data.TypeProviders\TypeProviderEmit.fs(25,42): error FS0752: The operator 'expr.[idx]' has been used on an object of indeterminate type based on information prior to this program point. Consider adding further type constraints 

C:\fsh\fsharp\src\fsharp\FSharp.Data.TypeProviders\TypeProviderEmit.fs(34,49): error FS0039: The type 'TypeProviderXmlDocAttribute' is not defined 

........ 

2 warning(s) 

57 Errors 

請幫助我不熟悉.NET或單工具...感謝

回答

0

安裝Mono 3.0後,您應啓動從開始菜單單命令提示符,然後執行

xbuild 參數

否則,xbuild將使用Microsoft .NET Framework作爲主機。

強烈建議使用的MSBuild構建F#,這就是他們說他們的自述什麼(即自述文件是不適用於Windows的情況下,我會抽出時間在本週末很精確),

https://github.com/fsharp/fsharp

當你使用的是Windows XP,請嘗試建立一個乾淨的盒子,而無需安裝Microsoft .NET框架,然後用單聲道和F#玩。這應該爲你節省一些時間,因爲你不需要對抗兩者。

已編輯:目前,Mono 2.10.9和3.0.3都無法在Windows上編譯fsharp master。將進一步調查,看看如何得到它編譯。

+0

非常感謝Lex,實際上你是對的,對單聲道我不太瞭解......我已經按照你的步驟在單聲道命令提示符下運行,現在我有一個OutofMemoryException ...我必須現在修復這個...謝謝... – user1050817

+0

@ user1050817,這應該是另一個問題。這個週末我只有時間來進一步調查這個問題。希望你能等到那時。 –

+0

嗨lex ..我做了安裝,但現在我發現,比monodevelop fid在windows綁定不起作用...所以...我停止嘗試:S ... – user1050817