Xamarin Studio f#项目无法在OSX上构建
我创建了一个简单的xamarin studio f#项目和f#unit项目。当我建造时,我得到Xamarin Studio f#项目无法在OSX上构建,f#,xamarin-studio,F#,Xamarin Studio,我创建了一个简单的xamarin studio f#项目和f#unit项目。当我建造时,我得到 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 co
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)
生成模板项目后,我没有对源代码进行任何更改。我也得到了这个。我通过用源代码构建的版本替换测试项目中对
nunit.framework
的引用来解决这个问题 问题在于文件路径中的空格
,引用应为
/Applications/Xamarin Studio.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/NUnit.framework.dll
目前有一个已知的问题
您也可以通过使用nuget来解决这个问题,我几乎总是使用NUnit进行F#中的单元测试。如果您还没有,您还可以获得它,这使得这些软件包的安装非常容易 我不知道有一个nuget插件+1.