![.NET Core 2.0 By Example](https://wfqqreader-1252317822.image.myqcloud.com/cover/114/36700114/b_36700114.jpg)
上QQ阅读APP看书,第一时间看更新
File sequence
The order of files in a project matters in an F# solution. The file used in any function should be placed above the file where the function is used, because F# has a forward-only model of compilation.
Unlike C#, where the file sequence doesn't matter, the sequencing of files does matter in F#. For example, consider that Program.fs is using DotNetCorePrint.fs. So, DotNetCorePrint.fs should be placed above Program.fs in the solution; otherwise, it will throw a compilation error. To move a file up or down, we can right-click on the file and select Move Up or the keys Alt + the up arrow to move the file. The ordering of the files in Solution Explorer can be seen in the following screenshot:
![](https://epubservercos.yuewen.com/6A2970/19470396201580706/epubprivate/OEBPS/Images/785d689b-0614-4bef-a938-625773a91d84.png?sign=1738837521-stCSEOR0qCxW19JTLtUDmPw7JNTJLJ97-0-08b04d86b42ad6307e265cca7fa66766)