I ran the canonical F# Hello World program by
dotnet run
It works. Now, I want to run it from VS Code, pushing F5 from the editor window showing Program.fs . In launch.json I have
"program": "${workspaceFolder}/HelloWorld/bin/Debug/netcoreapp3.1/HelloWorld.dll",
where HelloWorld is the project directory which is a child of the directory where the solution file resides. This file exists.
Upon hitting F5 I get
Could not find the task 'build'.
How can I configure VS Code to run my F# program with F5?