Option 1: Install the Visual F# Tools from Microsoft

logo On Windows, F# programmers commonly use the Visual F# Tools from Microsoft.

See Visual F# Resources for more information about the Visual F# Tools from Microsoft.


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+P and enter the following to install the Ionide package for VS Code.

     ext install Ionide-fsharp
    

You will also need to install the free F# compiler and command line tools in Step 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 the free F# compiler and command line tools in Step 4.


Option 4: Install the free F# compiler and tools alone

If you’re just looking for F# command-line tools, e.g. for a build server or cloud VM image, then you have two primary options.

Option A: Visual Studio 2017 Build Tools

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

Starting with Visual Studio 2017 Update 3, F# is an optional component. Simply select F# from the Individual Components tab and press Install.

Option B: Standalone installations

  1. Requires .NET 4.5:

    • On Windows 10 .NET 4.6 is already present by default

    • On Windows 8 and Windows 2012 Server, this is already present by default

    • On Windows 7 and Windows 2008 Server, install .NET 4.5 from Microsoft

  2. Requires the Windows SDK:

  3. Requires Microsoft Build Tools 2017 if you don’t have it on the box already - Install Microsoft Build Tools 2017 through the Build Tools SKU of VS 2017

    (Note: Although this download says Visual Studio 2017, the Build Tools SKU does not install Visual Studio. Only MSBuild and other tools required for build servers.)

  4. Install the free F# 4.1 Compiler SDK from Microsoft

    Alternatively, do a quiet install from a PowerShell administrator prompt (the URL is the redirect of the above).

     Invoke-WebRequest -Uri "https://download.microsoft.com/download/F/3/D/F3D6045E-4040-4058-ADAD-2698F1793CBC/Microsoft.FSharp.SDK.Core.msi" -OutFile "$pwd\Microsoft.FSharp.SDK.Core.msi"
     msiexec /i Microsoft.FSharp.SDK.Core.msi /quiet
    

The compiler tools on 64-bit Windows are installed at

C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsi.exe
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsiAnyCpu.exe

The compiler tools on 32-bit Windows are installed at

C:\Program Files\Microsoft SDKs\F#\4.0\Framework\v4.1\fsc.exe
C:\Program Files\Microsoft SDKs\F#\4.0\Framework\v4.1\fsi.exe
C:\Program Files\Microsoft SDKs\F#\4.0\Framework\v4.1\fsiAnyCpu.exe

Previous versions:


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