Reputation: 58
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
Reputation: 326
I believe the name of the F# compiler installed with mono is fsharpc.
Upvotes: 3