F# 11 in FSharp.Compiler.Service ?

Offen
#20,968 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
fsharp

Rechercherichtung

Start with the versioning comment in docs/release-notes/FSharp.Compiler.Service.fsx and the linked issues #20045 and #20818; the report also points to docs/fcs/index.md and the package README. Compare the FCS versions with their pinned FSharp.Core versions and SDK bands. Done means documenting the mapping and making it discoverable from the package README; the other release and package suggestions need maintainer decisions.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Needs-Triage

The lastest realease of F# compiler service is tied to FSharp.Core 10
Is that intentional? Why not 11?
https://www.nuget.org/packages/FSharp.Compiler.Service/43.13.404#dependencies-body-tab

Only the previous version before uses FSharp.Core 11.
https://www.nuget.org/packages/FSharp.Compiler.Service/43.13.101#dependencies-body-tab

my agent's summary:

FSharp.Compiler.Service 43.13.101 (F# 11) has a lower version than 43.13.404 (F# 10 servicing)

Summary

Since .NET 10, the minor number of FSharp.Compiler.Service is bumped independently of the F# version. That is intended, see #20045 and #20818. But the two packages released on 2026-11-10 contradict the goal stated in #20818: the F# 11 package has a lower version than the F# 10 servicing package released the same day.

Package Pins FSharp.Core SDK band Default language version
FSharp.Compiler.Service 43.13.101 11.0.101 11.0.1xx F# 11
FSharp.Compiler.Service 43.13.404 10.1.404 10.0.4xx F# 10 (11.0 only with --langversion:11.0)

#20818 bumped FCSMinorVersion to 14 so that .NET 11 "is versioned higher than .NET 10.0.4xx servicing (43.13.403 / 43.13.404)" and higher than release/11.0.1xx-rc2 (43.14.101). But the build of release/11.0.1xx that shipped (dotnet/dotnet@297acf930fb0f5c07fd4e51d78e521b4ad2e5d1f) still had FCSMinorVersion 13. The bump reached release/11.0.1xx in dotnet/dotnet only with dotnet/dotnet#10868 on 2026-11-10. So 11.0.1xx shipped as 43.13.101 instead of 43.14.101.

Consequences
  • nuget.org shows 43.13.404 as the latest stable version. If you want the latest FCS to get F# 11, you pick 43.13.404, which defaults to F# 10 and pins FSharp.Core 10.1.404. I did exactly that in a project that embeds FCS.
  • Update tools (Dependabot, Renovate, dotnet-outdated, dotnet list package --outdated) offer 43.13.101 → 43.13.404 to projects on F# 11. FCS pins FSharp.Core exactly, so this also moves FSharp.Core from 11.0.101 down to 10.1.404. It is a downgrade of the F# version that looks like a patch update.
  • release/11.0.1xx in dotnet/dotnet now has FCSMinorVersion 14 and FSBuildVersion 102, so the next F# 11 servicing release will probably be 43.14.102. Then F# 11.0.1xx is spread over two FCS minor versions, 43.13 and 43.14.
Other irregularities

All stable FCS versions since 43.10, with the FSharp.Core version they pin:

FCS versions FSharp.Core SDK band Published
43.10.100 – 43.10.115 10.0.100 – 10.0.115 10.0.1xx 2025-11 – 2026-11
43.12.100 11.0.100 (unlisted) ? 2026-03-10
43.12.201 – 43.12.204 10.1.201 – 10.1.204 10.0.2xx 2026-03 – 2026-05
43.11.300 – 43.11.303 10.1.300 – 10.1.303 10.0.3xx 2026-05 – 2026-08
43.12.400 – 43.12.403 10.1.400 – 10.1.403 10.0.4xx 2026-08 – 2026-10
43.13.404 10.1.404 10.0.4xx 2026-11-10
43.13.101 11.0.101 11.0.1xx 2026-11-10
  • 10.0.3xx (43.11.x) has lower versions than the older 10.0.2xx band (43.12.2xx).
  • 43.12.403 and 43.13.404 are consecutive servicing releases of the same 10.0.4xx band, but the minor version changed between them.
  • 43.12.100 is a listed stable package that pins FSharp.Core 11.0.100, which is unlisted. Its source (dotnet/dotnet@40cd698e5cfb2d90f436889726ee01f48d99f3ab) has FSMajorVersion 11 and FSBuildVersion 100. It looks like an early F# 11 build that was published as stable. It sorts above every 10.0.3xx package (43.11.x), so update tools offer it to projects on 43.11.x.
Documentation

The only description of the scheme I found is a code comment in docs/release-notes/FSharp.Compiler.Service.fsx:

The FCS package version cannot be derived from the release notes file name: its minor number is bumped independently of the F# version (43.12.100 is F# 11.0.100, 43.12.204 is F# 10.0.204).

FST-1004 says that FCS is not part of the versioning plan. I found no table that maps FCS versions to F# versions, FSharp.Core versions or SDK bands. The package description on nuget.org doesn't say which F# version a package is for. Only the pinned FSharp.Core version tells you.

Suggestions
  1. Document the scheme and add a table of FCS version → F# version → FSharp.Core version → SDK band, e.g. in docs/fcs/index.md, with a link from the package README.
  2. Put the F# version into the package description or release notes, e.g. "FSharp.Compiler.Service for F# 11.0 (.NET SDK 11.0.1xx)".
  3. Unlist 43.12.100, like FSharp.Core 11.0.100, which it depends on.
  4. Add a check to the release process, so that a package from a newer SDK band or F# version never gets a lower version than one already published from an older band.
  5. Until 43.14.x ships for F# 11, mention in the release notes that 43.13.101 is the F# 11 package, even though nuget.org shows 43.13.404 as newer.
Vorherrschende Sprache
F#
Sterne
4.3k
Forks
884
Ø Merge
2 T. 11 Std.
Gemergte PRs (30 T.)
73

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus dotnet/fsharp

Alle Issues in dotnet/fsharp

Ähnliche Issues

Weitere Issues zu Documentation

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.