Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in a file named HelloWorld.fs
and use dotnet
to execute it.
Sometimes we’ll want to build our programs into binaries. In F#, we can use the .NET SDK to achieve this.
First, create a new console project and replace the generated code with your F# script:
Then, build and run the project:
Now that we can run and build basic F# programs, let’s learn more about the language.