Skip to content

fsharp compiler

Zeioth edited this page Aug 24, 2023 · 16 revisions

You MUST have a .fsproj project file in your current working directory in order for the F# dotnet compiler to work correctly. The available options for the F# compiler are

Dotnet run this file on REPL

This option will open the interactive F# REPL for the current file.

Dotnet build and run

Compile and run your the project .fsproj file on the terminal.

Dotnet build

Run the previously compiled F# program on the terminal.

Considerations

As you can see we don't offer the usual compilation options build & run, build, run, and build solution for F#. They can't be implemented because dotnet is extremely privative in how they let their users compile. This might change in the future.

In the meantime use .fsproj files instead of .solution.toml files in your F# projects.