Hi
Recently I switched to windows and I decided that it’s a good opportunity to lean F#. I peaked up the Get Programming with F# book and started reading. One of the project in the book is this one. However when I opened it in Visual Studio 2019 and tried to build it I got the following error:
|Error||Unknown build error, 'Cannot resolve dependency to assembly 'FSharp.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'|MonopolyGui||||
This corresponds directly with one of my fears of .Net programming - It’s too tied up to the specific environment and IDE. I’m not against working in IDE (although I prefer editors like VSCode) - I’m really against requiring an IDE to build the project …
So I have several questions:
- Is there a relatively easy way to open and build this project?
- How can I list what F# versions I have installed?
- I know that you can edit new F# projects in VSCode but I also heard about requiring Visual Studio if you want to build in certain frameworks (like building for android). So if I mainly want to use F# for command line tools and cross platform GUI applications (Avalonia?) will I have to build it on visual studio or can I use VSCode?
Thanks in advance
Haim