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

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:

主站蜘蛛池模板: 土默特左旗| 申扎县| 台州市| 呈贡县| 湟源县| 连州市| 太原市| 奇台县| 巢湖市| 恩施市| 辉南县| 宁阳县| 广南县| 汤阴县| 侯马市| 潢川县| 常熟市| 寿光市| 纳雍县| 剑阁县| 庐江县| 苍山县| 龙江县| 凌源市| 武威市| 晴隆县| 安平县| 讷河市| 陆良县| 同德县| 大宁县| 桐乡市| 宁化县| 枣庄市| 宁德市| 收藏| 石林| 龙南县| 凉山| 任丘市| 满洲里市|