The following steps guide you to compiling your first program, with F# version 184.108.40.206 with .NET 2.0.
- From Add/Remove programs, uninstall any previous F# installs.
Download F# and save the zip file locally.
- Extract the files to a temporary location:
- Run the .msi installer from that directory. This requires .NET 2.0.
Note, if you have Visual Studio, the installer will run devenv /setup which takes some moments.
- Add the F# bin directory to your path:
set PATH=c:Program FilesFSharp-220.127.116.11bin;%PATH%
fsc is the command line compiler. You can list the command line options as follows:
- Create a source directory.
- Create a file
printf "Hello World!n"
- Compile it to give a
hello.exe which you can run.
F# is an advanced .NET programming language available from Microsoft Research.
Links for specific versions:
Note, some users report that “save” works but “open” does not.
- To install, save and unpack the zip file and read the installation notes (README-fsharp.html).
- From Add/Remove Programs uninstall any previous “F# Extensions for Visual Studio 2003 and 2005″.
- Run “InstallFSharp.msi”.
- On Mono/Linux follow the instructions in README-fsharp.html.
Operating system either Windows 2000, Windows Server 2003, Windows XP or Linux (Mono). Memory 256Mb minimum, recommending 512Mb or more.