F# Environment Setup

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

To create Windows applications with the F# programming language, you will first need to install a Visual Studio Integrated Development Environment (IDE).

  • Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft where you can develop different types of applications on the .NET platform.
  • It also allows the developer to debug and run their applications.

Download & Installation

Install F# with Visual Studio

To download Visual Studio, go to the Visual Studio download page https://visualstudio.microsoft.com/downloads/.

image

You can select one of the following editions.

  • Visual Studio 2019 Community (Free download)
  • Visual Studio 2019 Professional (Free trial)
  • Visual Studio 2019 Enterprise (Free trial)

In this tutorial, we will use the Visual Studio 2019 Community Edition. It is a streamlined version of Visual Studio, specially created for people learning to program. It has a simplified user interface and omits advanced features of the professional edition to avoid confusion.

So click on the Free download button, and once the *.exe file is downloaded, right-click and select the Run as administrator on the downloaded file to begin the installation.

image

Click on continue to go ahead with the installation.

image

On the Workloads page, select the ASP.NET and web development workload including F# and .NET Core support for ASP.NET Core projects.

Select the required Workload. Let's say we want to install the .NET Desktop development & ASP.NET and web development. Now, click on the Install button to begin the installation of Visual Studio 2019.

The installer will now download and install each component from the internet. It will take some time depending on your internet speed. Once the installation is completed, you will see the Installation succeeded message.

Install F# with Visual Studio Code

You can download the Visual Studio Code installer for Windows from the Visual Studio Code's official website.

image

Alternatively, you can also download a Zip archive from the Visual Studio Code's download page, extract it, and run Code from there.

Once you install the .NET Core SDK and Visual Studio Code. Select the Extensions icon and search for "Ionide".

image

The only plugin required for F# support in Visual Studio Code is Ionide-fsharp.

  • You can also install Ionide-FAKE to get FAKE support and Ionide-Paket to get Paket support.
  • FAKE and Paket are additional F# community tools for building projects and managing dependencies, respectively.


Got any F# Question?