Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# compiler order of source files

Tags:

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.

like image 582
rwallace Avatar asked May 25 '10 20:05

rwallace


2 Answers

About the Visual Studio 2008 integration, you can move up/down source files with a right click and choosing Move Up, Move Down or use the shortcut Alt+Up Arrow, Alt+Down Arrow after having selected the file.

like image 149
Stringer Avatar answered Nov 09 '22 10:11

Stringer


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?

like image 32
Brian Avatar answered Nov 09 '22 10:11

Brian