开发者

Visual Studio 11 Developer Preview IntelliSense can't open F# modules?

Bug or Am I doing something wrong ?

Visual Studio 11 Developer Preview IntelliSense can't open F# modules?

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 Fil开发者_开发问答es\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


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?)


I found what caused such trouble. And there is same error on VS2010

this :

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

Japanese comments breaks IntelliSense.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜