Visual Studio 11开发人员预览版IntelliSense无法打开F#模块?

时间:2011-09-16 07:44:34

标签: f# visual-studio-2012

Bug还是我做错了什么?

enter image description here

Error   13  The namespace or module 'BModel' is not defined
Error   12  The namespace or module 'Connector' is not defined
Error   11  The namespace or module 'Work' is not defined

但是用它编译......

命令行:

C:\Program Files\Microsoft F#\v4.0\fsc.exe -o:obj\Debug\TCPBattle.dll -g --debug:full --noframework --define:DEBUG --define:TRACE --doc:D:\opc_boi\trunk\Debug\TCPBattle.XML --optimize+ --tailcalls- -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Core.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" --target:library --warn:3 --warnaserror:76 --vserrors --LCID:1033 --utf8output --fullpaths --flaterrors "C:\Users\Username\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" Hex.fs Model.fs DeviceModel.fs Native.fs C.fs Core.fs Connector.fs Work.fs Battle.fs 
BOIConnector -> D:\opc_boi\trunk\Debug\TCPBattle.dll

2 个答案:

答案 0 :(得分:1)

在截图中看起来像是在Battle.fs中,并且可能是例如Work.fs包含Work模块,它位于Battle.fs之上...如果右键单击解决方案资源管理器中的文件并选择属性,那么'BuildAction'是否设置为'Compile'?编译时会发生什么(在输出窗口中将命令行发送到fsc.exe)? (您是否尝试过关闭VS并重新启动?)

答案 1 :(得分:1)

我发现是什么造成了这样的麻烦。并且在VS2010上存在相同的错误

这个:

// エラーが発生
// 停止

日语评论打破了智能感知。