The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
Перейти к файлу
Kevin Ransom (msft) 68dc158427
Update release notes for fcs 38.0.1 and 39.0.0 (#10602)
2020-12-03 06:27:01 -08:00
.devcontainer
.github/ISSUE_TEMPLATE
.vscode
docs fix broken link (#10562) 2020-11-28 18:26:04 -08:00
eng [main] Update dependencies from dotnet/arcade (#10455) 2020-11-25 10:51:22 -08:00
fcs-samples Move FCS samples to root (#10025) 2020-08-27 12:22:44 -07:00
scripts remove dotnet myget restore sources (#10235) 2020-10-07 15:44:29 -07:00
setup build net472 of Microsoft.DotNet.DependencyMangager since the netstandard2.0 can't be ngened (#10390) 2020-11-05 14:01:11 -08:00
src Fix generic overloads with nullable (#10582) 2020-12-02 15:34:13 -08:00
tests Fix generic overloads with nullable (#10582) 2020-12-02 15:34:13 -08:00
vsintegration use 5.0 sdk (#10179) 2020-12-02 13:03:28 -08:00
.gitattributes
.gitignore FSharp.Core: Map: optimize tree layout (#10188) 2020-09-26 21:17:17 +02:00
.vsconfig Remove 2.1 from vsconfig (#10005) 2020-08-26 18:46:25 +02:00
Build.cmd binary logging defaults for build (#10296) 2020-10-21 10:55:47 -07:00
CODE_OF_CONDUCT.md
CoordinateXlif.targets
DEVGUIDE.md use 5.0 sdk (#10179) 2020-12-02 13:03:28 -08:00
Directory.Build.props
Directory.Build.targets xunit test (#9972) 2020-08-21 12:53:10 -07:00
FSharp.Compiler.Service.sln Add FSharp.Compiler.Service.Tests to FCS solution 2020-09-19 13:04:58 +03:00
FSharp.Profiles.props Use TargetFramework name to determine the kind of framework. (#10247) 2020-10-12 15:18:00 -07:00
FSharp.sln folder rename (#10183) 2020-09-25 08:14:10 -07:00
FSharpBuild.Directory.Build.props adopt official arcade source build (#10243) 2020-10-12 16:09:57 -07:00
FSharpBuild.Directory.Build.targets always re-compute PackageReleaseNotes (#10281) 2020-10-19 13:57:50 -07:00
FSharpTests.Directory.Build.props
FSharpTests.Directory.Build.targets Nuget package + release notes (#10024) 2020-08-27 14:14:53 -07:00
INTERNAL.md add FCS release definition links 2020-12-02 14:20:59 -08:00
Language-Version-History.md reverse order (news first) (#10045) 2020-09-01 11:56:55 -07:00
License.txt
NuGet.config remove remaining myget feeds (#10241) 2020-10-13 14:25:16 -07:00
README.md use 5.0 sdk (#10179) 2020-12-02 13:03:28 -08:00
Restore.cmd
TESTGUIDE.md Further improve TESTGUIDE.md (#10031) 2020-09-01 01:30:51 -07:00
Test.cmd
VisualFSharp.sln folder rename (#10183) 2020-09-25 08:14:10 -07:00
attributions.md
azure-pipelines.yml use 5.0 sdk (#10179) 2020-12-02 13:03:28 -08:00
build.sh binary logging defaults for build (#10296) 2020-10-21 10:55:47 -07:00
global.json use 5.0 sdk (#10179) 2020-12-02 13:03:28 -08:00
icon.png
proto.proj
release-notes.md Update release notes for fcs 38.0.1 and 39.0.0 (#10602) 2020-12-03 06:27:01 -08:00
restore.sh
test.sh

README.md

The F# compiler, F# core library, and F# editor tools

You're invited to contribute to future releases of the F# compiler, core library, and tools. Development of this repository can be done on any OS supported by .NET Core.

You will also need the latest .NET 5 SDK installed from here.

Contributing

Quickstart on Windows

Build from the command line:

build.cmd

The build depends on an installation of Visual Studio. To build the compiler without this dependency use:

build.cmd -noVisualStudio

After it's finished, open either FSharp.sln or VisualFSharp.sln in your editor of choice. The latter solution is larger but includes the F# tools for Visual Studio and its associated infrastructure.

Quickstart on Linux or macOS

Build from the command line:

./build.sh

After it's finished, open FSharp.sln in your editor of choice.

Visual Studio Online quickstart

If you'd like to use Visual Studio online (or VSCode with VSO as backend), just click this button to create a new online environment:

VS Online

This will provision an environment with all necessary dependencies. Initial build of the environment may take up to 10 minutes, as it's also performing initial build of the F# compiler.

Documentation for contributors

See DEVGUIDE.md for more details on configurations for building the codebase. In practice, you only really need to run build.cmd/build.sh.

See TESTGUIDE.md for information about the various test suites in this codebase and how to run them individually.

See the Compiler Guide for an in-depth guide to the F# compiler. It is essential reading for any larger contributions to the F# compiler codebase.

See the F# Language Specification for an in-depth description of the F# language. This is essential for understanding some behaviors of the F# compiler and some of the rules within the compiler codebase. For example, the order and way name resolution happens is specified here, which greatly impacts how the code in Name Resolutions works and why certain decisions are made.

No contribution is too small

Even if you find a single-character typo, we're happy to take the change! Although the codebase can feel daunting for beginners, we and other contributors are happy to help you along.

Build Status

Branch Status
main Build Status

Using nightly releases in Visual Studio

You can use the latest main build of the F# compiler and tools for Visual Studio via our nightly releases if you are a Visual Studio user. See details on setup here:

https://blogs.msdn.microsoft.com/dotnet/2017/03/14/announcing-nightly-releases-for-the-visual-f-tools/

Even more nightly than the nightly

Alternatively, if you really want to live on the bleeding edge, you can set up a nightly feed for the Visual Studio preview releases, which use the latest commit in the preview branch. To do so, follow the same instructions as the above blog post, but instead with these links:

Per-build NuGet packages

Per-build verions of our NuGet packages are available via this URL: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json

Branches

These are the branches in use:

  • main

    • Almost all contributions go here.
    • Able to be built, installed and used in the latest public Visual Studio release.
    • May contain updated F# features and logic.
    • Used to build nightly VSIX (see above).
  • release/dev15.9

    • Long-term servicing branch for VS 2017 update 15.9.x. We do not expect to service that release, but if we do, that's where the changes will go.
  • release/dev16.x

    • Latest release branch for the particular point release of Visual Studio.
    • Incorporates features and fixes from main up to a particular branch point, then selective cherry-picks.
    • May contain new features that depend on new things or fixes in the corresponding forthcoming Visual Studio release.
    • Gets integrated back into main once the corresponding Visual Studio release is made.

F# language and core library evolution

Evolution of the F# language and core library follows a process spanning two additional repositories. The process is as follows:

  1. Use the F# language suggestions repo to search for ideas, vote on ones you like, submit new ideas, and discuss details with the F# community.
  2. Ideas that are "approved in principle" are eligible for a new RFC in the F# language design repo. This is where the technical specification and discussion of approved suggestions go.
  3. Implementations and testing of an RFC are submitted to this repository.

License

This project is subject to the MIT License. A copy of this license is in License.txt.

Code of Conduct

This project has adopted the Contributor Covenant code of conduct to clarify expected behavior in our community. You can read it at CODE_OF_CONDUCT.

Get In Touch

Members of the F# Software Foundation are invited to the FSSF Slack. You can find support from other contributors in the #compiler and #editor-support channels.

Additionally, you can use the #fsharp tag on Twitter if you have general F# questions, including about this repository. Chances are you'll get multiple responses.

About F#

If you're curious about F# itself, check out these links: