官术网_书友最值得收藏!

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:

主站蜘蛛池模板: 四平市| 宜川县| 土默特右旗| 乃东县| 三明市| 林西县| 新昌县| 肥城市| 河西区| 开化县| 漯河市| 米泉市| 梨树县| 兰考县| 申扎县| 新巴尔虎左旗| 孟州市| 铜梁县| 高淳县| 广州市| 葵青区| 盘山县| 新化县| 濮阳县| 万年县| 凤翔县| 扎鲁特旗| 杭州市| 盐山县| 大石桥市| 宁化县| 房山区| 密山市| 安远县| 靖西县| 永州市| 遂溪县| 日喀则市| 曲麻莱县| 高唐县| 聂拉木县|