gpt4 book ai didi

f# - Visual Studio 11 Developer Preview IntelliSense 无法打开 F# 模块?

转载 作者:行者123 更新时间:2023-12-05 01:09:43 29 4
gpt4 key购买 nike

错误或我做错了什么?

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

最佳答案

在屏幕截图中,您似乎在 Battle.fs 中,大概例如Work.fs 包含 Work 模块,它位于 Battle.fs 之上...如果您在解决方案资源管理器中右键单击该文件并选择属性,“BuildAction”是否设置为“Compile”?编译时会发生什么(在输出窗口中将什么命令行发送到 fsc.exe)? (你试过关闭VS再重启吗?)

关于f# - Visual Studio 11 Developer Preview IntelliSense 无法打开 F# 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7441600/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com