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

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