Visual Studio 11 开发者预览版 IntelliSense 无法打开 F# 模块?
Bug 还是我做错了什么?
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
Bug or Am I doing something wrong ?
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
But compiling with it...
command line :
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您在屏幕截图中的 Battle.fs 中,并且可能例如 Work.fs 包含 Work 模块,并且它位于 Battle.fs 之上...如果您右键单击解决方案资源管理器中的文件并选择属性,是“BuildAction”设置为“编译”?编译时会发生什么(在输出窗口中将什么命令行发送到 fsc.exe)? (你有没有尝试过关闭VS并重新启动?)
It looks like you're in Battle.fs in the screenshot, and presumably e.g. Work.fs contains the Work module, and it is above Battle.fs... if you right click the file in solution explorer and select properties, is the 'BuildAction' set to 'Compile'? What happens when you compile (what command-line is sent to fsc.exe in the output window)? (Have you tried closing VS and restarting?)
我找到了造成这样麻烦的原因。 VS2010 上也有同样的错误
:
日语注释破坏了 IntelliSense。
I found what caused such trouble. And there is same error on VS2010
this :
Japanese comments breaks IntelliSense.