F# 编译器的源文件顺序 [英] F# compiler order of source files

查看:23
本文介绍了F# 编译器的源文件顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,在使用 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)是通过 MSBuild;.fsproj 项目文件将每个文件作为单独的 项放在单独的行上.您使用什么构建工具?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆