by turtlebits · 7y ago · 0 comments
However, trying to get up and running on a Mac, the documentation is horrible. I looked at several of the official guides, including the Microsoft site on how to get running with VSCode, and none of them worked without having to search for the error messages.
Now that I'm up and running, none of the docs I could find would tell me how to build/run a project.
It appears you to install the .NET Core SDK, and now trying to build a project gives some ".NETFramework,Version=v4.6.1" error.
What a nightmare. I almost expected this since this is a .NET/Microsoft related project.
1. Install the dotnet core sdk 2. From a command line in an empty folder, run `dotnet new console -lang F#` 3. To build or run use `dotnet build` or `dotnet run`
I followed the VSCode instructions and using "F# new project" apparently gave me a .fsproj with the wrong TargetFramework, and after changing that, then got a "Could not load file or assembly 'FSharp.Core" error.
But there is still a lot of outdated docs out there. dotnet core has just come too fast, imo (though I'm thankful). These MS docs are accurate: https://docs.microsoft.com/en-us/dotnet/fsharp/get-started/g.... Though it does specify the use of sln, which isnt necessary for small projects.