Skip to content

Runtime analyzers now reference Roslyn 4.14.0.0 and fail to load in some hosts #120815

Closed

Description

@ericstj

As of #119195 all the runtime-provided source-generators / analyzers now target roslyn 4.14.0.0.

This broke their use in DocFx, since the latest shipping version is still bundling 4.12.0.0 -- and there's no override.

That PR mentions:

Low. Analyzer-only fix. Note that it does include an update to Microsoft.CodeAnalysis, which needs to remain compatible with the version that ships with VS. Confirmed with @jkoritzinsky that this version is OK for .NET 10.

We should double check this @jkoritzinsky @ViktorHofer. If possible we should be making these changes much earlier in the release.

Activity

  1. added
    untriaged
    on Oct 16, 2025
  2. added
    needs-area-label
    on Oct 16, 2025
  3. jkoritzinsky commented on Oct 16, 2025

    @jkoritzinsky
    Member

    We try to make these changes earlier in the release. In this case, the trimming analyzer needed to react to new APIs introduced in Roslyn very late in the release.

    If we have additional constraints on upgrading the Roslyn version used by analyzers (like DocFx), then we need to update the guidance we have in eng/Versions.props to account for these constraints (as the only constraint we have documented today is innerloop dev experience)

  4. dotnet-policy-service commented on Oct 17, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/runtime-infrastructure
    See info in area-owners.md if you want to be subscribed.

  5. removed
    needs-area-label
    on Oct 19, 2025
  6. removed
    untriaged
    on Jul 14, 2026
  7. added this to the 11.0.0 milestone on Jul 14, 2026
  8. steveisok commented on Jul 14, 2026

    @steveisok
    Member

    @dotnet/runtime-infrastructure if updating eng/Version.props is the only action off of this issue, does anyone want to take that on?

  9. jkoritzinsky commented on Jul 22, 2026

    @jkoritzinsky
    Member

    docfx has moved to Roslyn 5.0, so this has been addressed.

  10. locked and limited conversation to collaborators on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions