Man jpeglover
Man jpeglover

Reputation: 58

Compiling a single F# program on a mac

So Im starting to use F# as a language. Currently Im either using Visual studio for mac to compile my code or just vscode (and then running MSbuild on the .fsproj file). However I find both these solutions very inconvenient at times, as I dont want to make projects every time i want to try out F# code. Consider c# or C++ or even C. You don't have to make a new project or anything like that, you just type in "gcc ". Im running on a mac and I do have dotnet and mono installed. Its definitely possible to compile F# to an exe and run it, but how do I do it for only one file? I tried fcs, but Bash doesn't recognize it as a command.

Upvotes: 2

Views: 396

Answers (1)

DaleS
DaleS

Reputation: 326

I believe the name of the F# compiler installed with mono is fsharpc.

Upvotes: 3

Related Questions