我创建了一个简单的xamarin工作室f#项目和f#单元项目.当我建立我得到
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)
Run Code Online (Sandbox Code Playgroud)
生成模板项目后,我没有更改源代码.
问题是space在文件的路径中,引用应该读取
/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll
目前已知的问题在这里
您也可以使用nuget解决它,我几乎总是使用带有NUnit的fsunit进行F#中的单元测试.如果您还没有它,您还可以获得monodevelop-nuget-addin,这使得安装这些软件包非常容易.