2013-02-27 70 views
3

我創建了一個簡單的xamarin studio f#項目和f#單元項目。當我建立我得到Xamarin Studio f#項目無法在OSX上構建

unknown-file(1,1): Error FS2020: The assembly 
'Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll' 
    is listed on the command line. 
    Assemblies should be referenced using a command line flag such as 
    '-r'. (FS2020) (FRXUI.Spec) 

我生成模板項目後沒有做任何源代碼更改。

回答

3

我也是這樣。我通過用從源代碼構建的版本替換在我的測試項目中對nunit.framework的引用來解決它。

5

的問題是在文件路徑的space時,應參考閱讀

/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll

目前已知問題here

您還可以使用的NuGet解決它,我幾乎總是在NU#中使用fsunit在F#中進行單元測試。如果你還沒有它,你也可以得到monodevelop-nuget-addin這使得這些軟件包的安裝非常容易。

+1

我不知道有一個nuget插件! +1 – 2013-05-07 09:14:32

相關問題