F Sharp on .NET Core
Creating a new project via dotnet CLI[edit | edit source]
Once you've installed the .NET CLI tools, you can create a new project with the following command:
dotnet new --lang f#
This creates a command line program.
Initial project workflow[edit | edit source]
Create a new project
dotnet new -l f#
Restore any packages listed in project.json
A project.lock.json file should be written out.
Execute the program
The above will compile the code if required.
The output of the default project created by
dotnet new -l f# contains the following:
Hello World! [||]