The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
Перейти к файлу
Kevin Ransom (msft) f07a91420b
cherry pick (#17907)
2024-10-22 17:17:36 -07:00
.config
.devcontainer Update to .NET 9 rc1 (#17698) 2024-09-12 23:06:55 +02:00
.github Spelling 2024-08-21 17:05:53 +02:00
.vscode Default to .NET9 (#17426) 2024-07-23 12:40:03 +02:00
buildtools Revert PR - Make the interaction between #line and #nowarn directives consistent (#17859) 2024-10-09 15:44:18 -07:00
docs Revert PR - Make the interaction between #line and #nowarn directives consistent (#17859) 2024-10-09 15:44:18 -07:00
eng [17.12] Turn off realsig when building product and proto (#17808) 2024-09-27 12:03:01 +02:00
scripts Spelling 2024-08-21 17:05:53 +02:00
setup Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
src cherry pick (#17907) 2024-10-22 17:17:36 -07:00
tests Revert PR - Make the interaction between #line and #nowarn directives consistent (#17859) 2024-10-09 15:44:18 -07:00
vsintegration Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
.editorconfig
.fantomasignore [RFC FS-1060] Nullness checking (applied to codebase) (#15310) 2024-08-14 09:52:35 +00:00
.git-blame-ignore-revs Update `.git-blame-ignore-revs` (#17582) 2024-08-27 12:06:15 +02:00
.gitattributes
.gitignore [RFC FS-1060] Nullness checking (#15181) 2024-07-17 21:30:43 +02:00
.vsconfig
Build.cmd Sourcebuild perf perhaps (#16860) 2024-05-08 10:14:01 -07:00
CODE_OF_CONDUCT.md
CoordinateXliff.targets
DEVGUIDE.md Spelling 2024-08-21 17:05:53 +02:00
Directory.Build.props Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
Directory.Build.targets Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
FSharp.Benchmarks.sln [RFC FS-1060] Nullness checking (#15181) 2024-07-17 21:30:43 +02:00
FSharp.Compiler.Service.sln Compiler test cleanup, part 3 (and the last one) (#15777) 2024-05-29 17:35:25 +02:00
FSharp.Compiler.Service.sln.DotSettings Real accessibility (#15484) 2024-03-01 04:01:34 +00:00
FSharp.Editor.sln
FSharp.Profiles.props Update to .NET 9 rc1 (#17698) 2024-09-12 23:06:55 +02:00
FSharp.sln Compiler test cleanup, part 3 (and the last one) (#15777) 2024-05-29 17:35:25 +02:00
FSharpBuild.Directory.Build.props Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
FSharpBuild.Directory.Build.targets Housekeeping: move language version, fix links to release notes for nugets. (#17687) 2024-09-10 20:46:51 -07:00
FSharpTests.Directory.Build.props WIP: Use Arcade's NetCurrent (#16682) 2024-02-23 15:57:33 +01:00
FSharpTests.Directory.Build.targets
INTERNAL.md
License.txt
Microsoft.FSharp.Compiler.sln Sourcebuild perf perhaps (#16860) 2024-05-08 10:14:01 -07:00
NuGet.config Update to .NET9p7 SDK (#17537) 2024-08-22 16:41:20 +02:00
README.md Update README.md 2024-02-17 22:00:10 +01:00
Restore.cmd
TESTGUIDE.md Update TESTGUIDE.md (#17663) 2024-09-09 13:48:48 +02:00
Test.cmd Change default compression setting for compiler + bump versions (#17383) 2024-07-08 16:29:13 +02:00
UseLocalCompiler.Directory.Build.props Fix UseLocalCompiler.Directory.Build.props (#17542) 2024-08-29 11:19:54 +02:00
VisualFSharp.sln Compiler test cleanup, part 3 (and the last one) (#15777) 2024-05-29 17:35:25 +02:00
attributions.md
azure-pipelines-PR.yml Run version check on all branches (#17686) 2024-09-11 12:03:21 +02:00
azure-pipelines.yml Update azure-pipelines.yml 2024-10-07 14:29:42 +02:00
build.sh Sourcebuild perf perhaps (#16860) 2024-05-08 10:14:01 -07:00
global.json Update arcade (#17714) 2024-09-13 00:46:04 +00:00
icon.png
proto.proj Switch to new VMR control set (#17703) (port from main) (#17788) 2024-09-26 15:08:28 +02:00
release-notes.md Spelling 2024-08-21 17:05:53 +02:00
restore.sh
test.sh

README.md

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

Build Status Help Wanted

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.

You will also need .NET SDK installed from here, exact version can be found in the global.json file in the root of the repository.

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.

Documentation for contributors

  • The Compiler Documentation is essential reading for any larger contributions to the F# compiler codebase and contains links to learning videos, architecture diagrams, and other resources.

  • The same docs are also published as The F# Compiler Guide. It also contains the public searchable docs for FSharp.Compiler.Service component.

  • See DEVGUIDE.md for more details on configurations for building the codebase. In practice, you only 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.

Documentation for F# community

  • The F# Documentation is the primary documentation for F#. The source for the content is here.

  • The F# Language Design Process is the fundamental design process for the language, from suggestions to completed RFCs. There are also tooling RFCs for some topics where cross-community co-operation and visibility are most useful.

  • The F# Language Specification is 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 are 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.

Per-build NuGet packages

7.0.40x series

FSharp.Compiler.Service 43.7.400-preview

<add key="fsharp-prerelease" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />

8.0.10x series

FSharp.Compiler.Service 43.8.100-preview

<add key="fsharp-prerelease" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />

NOTE: Official NuGet releases of FCS and FSharp.Core are synched with SDK releases (on purpose - we want to be in sync). Nightly packages release to Azure feeds on every successful insertion.

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/dev17.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: