F#编译器的源文件顺序 [英] F# compiler order of source files
问题描述
据我了解,使用F#时,您必须按照依赖顺序手动列出源文件,以使编译器受益(如果有任何解决方法,请告诉我!)
As I understand it, when using F#, you have to manually list the source files in dependency order for the compiler's benefit (if there is any way around that, please let me know!)
在命令行中从左到右列出它们显然不会扩展.是否有办法至少使它接受文本文件中的文件列表(每行一个),最好能插入空白行和注释?我检查了编译器选项,但看不到任何有前途的东西.
Listing them on the command line from left to right obviously isn't going to scale. Is there a way to at least make it accept the list of files in a text file, one per line, preferably with the ability to put in blank lines and comments? I've checked the compiler options, and I don't see anything that looks promising.
推荐答案
否,但是编译F#的典型方法(至少在Windows上;关于Mono的dunno)是通过MSBuild. .fsproj项目文件将每个文件作为单独的<Compile>
项目放在单独的行上.您使用什么构建工具?
No, but the typical way to compile F# (at least on Windows; dunno about Mono) is via MSBuild; the .fsproj project file puts each file as a separate <Compile>
item on a separate line. What build tools are you using?
这篇关于F#编译器的源文件顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!