Skip to content

Revert Roslyn 5.15 bump and pin Roslyn to 5.14 - #21063

Open
abonie wants to merge 2 commits into
mainfrom
abonie-revert-roslyn-5-15-and-pin
Open

abonie wants to merge 2 commits into
mainfrom
abonie-revert-roslyn-5-15-and-pin

Conversation

@abonie

@abonie abonie commented Dec 2, 2026

Copy link
Copy Markdown
Member

Problem

With the current main, F# fails to open projects in the latest Visual Studio. ActivityLog shows FSharpProjectPackage, FSharpPackage and FSharp.Editor MEF parts failing with:

FileNotFoundException: Microsoft.VisualStudio.LanguageServices, Version=5.15.0.0

VS currently ships Roslyn 5.14 (Microsoft.VisualStudio.LanguageServices 5.14.0.0), and devenv.exe.config redirects 0.0.0.0-5.14.0.0 -> 5.14.0.0, so an assembly compiled against 5.15.0.0 cannot bind.

The 5.15 references came from #20983 (Maestro Roslyn flow), which moved all 8 Roslyn packages from 5.14.0-1.26557.1 to 5.15.0-1.26570.9, along with the VS SDK pins those required.

Changes

  1. Revert [main] Update dependencies from dotnet/roslyn #20983 (d71c4ed): Roslyn packages back to 5.14.0-1.26557.1, VisualStudioEditorPackagesVersion back to 18.12.46, Microsoft.Internal.VisualStudio.Shell.Framework back to 18.9.317. The threading-analyzer tweaks in the integration tests are reverted as well, since they were only needed with the newer VS SDK analyzers.
  2. Pin the 8 Roslyn dependencies in eng/Version.Details.xml with Pinned="true" so Maestro doesn't immediately re-bump them to 5.15:
    Microsoft.CodeAnalysis, .Compilers, .CSharp, .EditorFeatures, .EditorFeatures.Text, .Features, Microsoft.VisualStudio.LanguageServices, Microsoft.VisualStudio.LanguageServices.ExternalAccess.

The pin should be removed once VS ships Roslyn 5.15.

Validation

  • eng\Build.ps1 -c Debug -restore -build with BUILDING_USING_DOTNET=false (builds VisualFSharp.slnx incl. all vsintegration projects): succeeded, 0 warnings, 0 errors, so no NU1109/MSB3277 downgrade conflicts.
  • Built FSharp.Editor.dll now references Microsoft.VisualStudio.LanguageServices 5.14.0.0, .ExternalAccess 5.14.0.0, Microsoft.CodeAnalysis 5.14.0.0.

abonie and others added 2 commits December 2, 2026 11:46
This reverts commit d71c4ed. FSharp.Editor built against Roslyn 5.15 fails to load in Visual Studio, which ships Roslyn 5.14 (Microsoft.VisualStudio.LanguageServices 5.15.0.0 not found).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this from New to In Progress in F# Compiler and Tooling Dec 2, 2026
abonie added a commit that referenced this pull request Dec 2, 2026
* Revert release/dev18.14 to the commit inserted in VS rel/insiders

Reverts c82fbeb (#20978) and ecac5a6 (#21015) so the branch content matches 90fd6f1, the F# commit currently inserted into VS rel/insiders.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bc161051-6a30-4c0c-a850-e39ac8c8e1f0

* Pin Roslyn dependencies to 5.14 for VS 18.14 insertion

Replays the revert of #20983 and the Roslyn 5.14 pin from #21063, without the integration-test changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bc161051-6a30-4c0c-a850-e39ac8c8e1f0

* Configure release/dev18.14 servicing for VS rel/insiders

Insert release/dev18.14 into VS rel/insiders and pin VSMinorVersion to 14.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bc161051-6a30-4c0c-a850-e39ac8c8e1f0

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bc161051-6a30-4c0c-a850-e39ac8c8e1f0
@T-Gro

T-Gro commented Dec 3, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines

This comment has been minimized.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants