How to get F# working with Mono?

后端 未结 9 1081

I can\'t seem to find a compiler/plugin for mono. Does one exist?

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 07:34

    In 2019, a lot of these earlier answers are outdated. No need for zip files or the like.

    From Ubuntu 19.04 onwards, i.e. disco you can now install packages with:

    sudo apt-get install mono-complete fsharp
    

    That gives you the F-sharp compiler at /usr/bin/fsharpc

    Alternatively, if you want the latest, you can add the Mono repository and pull packages from there, as detailed at:

    https://www.mono-project.com/download/stable/#download-lin

提交回复
热议问题