Option 1: Install Visual Studio

logo On Windows, F# programmers commonly use the Visual Studio tools for F#.


Option 2: Install Visual Studio Code

logo Visual Studio Code is a free, open source, cross platform source code editor supporting a lot of languages. F# is supported by the Ionide project and is a nice integration.

  1. Install Visual Studio Code for Windows
  2. Press Ctrl+Shift+P and enter the following to install the Ionide package for VS Code.

     ext install Ionide-fsharp
    

You will also need to install either Visual Studio or the F# compiler and build tools in option 4.


Option 3: Install JetBrains Rider

logo JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology. It offers support for .NET and .NET Core applications on all platforms.

  1. Install JetBrains Rider for Windows.
  2. (optional) Install latest .NET Core SDK

You will also need to install either Visual Studio or the F# compiler and build tools in option 4.


Option 4: Install the Visual Studio 2017 Build Tools

If you’re just looking for F# command-line tools, e.g. for a build server or cloud VM image, then the Visual Studio 2017 Build Tools are your best option.

The Visual Studio 2017 Build Tools SKU, despite the name, actually does not install Visual Studio. It just installs MSBuild and various other compiler toolchains.

Simply select F# from the Individual Components tab (or on the right-hand side in the MSBuild workload) and press Install.

The installation location will be:

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\FSharp

Older F# installations

The following downloads are unsupported (i.e., you will be asked to upgrade your compiler if you find a bug), but they can be used on build servers for older F# projects if you do not wish to use a newer compiler to compile these older projects.

The installation location will be under:

C:\Program Files (x86)\Microsoft SDKs\F#


Option 5: Run already compiled F# code on servers

Compiled F# code depends on the FSharp.Core.dll assembly. This file is not part of a standard .NET installation, so in order to execute applications written in F# on servers (or other machines without developer tools), it must be installed or bundled with your application. The recommended procedure is to bundle this component with your final application. The Visual F# Tools downloads from Microsoft installs FSharp.Core.dll into GAC.


Option 6: Build F# from source

Build and contribute to the F# compiler and library from the source