F# defining/using a type/module in another file in the same project

前端 未结 5 1044
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 22:34

This will hopefully be an easy one. I have an F# project (latest F# CTP) with two files (Program.fs, Stack.fs). In Stack.fs I have a simple namespace and type definition

5条回答
  •  庸人自扰
    2020-12-05 23:07

    I'm using Visual Studio for Mac - 8.1.4 and i've noticed that some .fs files are not marked as "Compile". You can see this by Viewing Build Output and see if all your files are there and in the correct order.

    I've had to manually make sure certain files are marked with "Compile", and have had to move them up and down manually until it "takes".

提交回复
热议问题