Skip to content

Raise the minimum Roslyn version for MSTest.Analyzers to 4.14 #10446

Description

Raise MicrosoftCodeAnalysisVersion from 3.11.0 to 4.14.0 for MSTest.Analyzers and its code fixes during the next breaking-change release.

This intentionally raises the minimum supported analyzer host to Roslyn 4.14 (Visual Studio 2022 17.14 / .NET 9.0.3xx SDK or newer). Older hosts cannot load analyzer assemblies built against Roslyn 4.14 because Roslyn is supplied by the compiler host and excluded from the MSTest.Analyzers package.

Implementation should:

  • update MicrosoftCodeAnalysisVersion and raise MicrosoftCodeAnalysisVersionForTests to at least 4.14;
  • adopt the newer Roslyn APIs and nullable annotations where appropriate;
  • remove compatibility code that exists only for the Roslyn 3.11 build floor;
  • verify the packaged analyzers and code fixes load and run on the oldest host retained by the v5 support policy;
  • document the new minimum Visual Studio / .NET SDK requirement.

Reference: dotnet/sdk#55525, which makes the equivalent minimum-host change for the out-of-band Microsoft.CodeAnalysis.NetAnalyzers package.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/analyzersMSTest.Analyzers Roslyn analyzers and code fixes.type/breaking-changeBehavioral or API breaking change.

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions