Skip to content

[release/10.0.2xx] Bump analysislevel constants for .NET 10 release#52487

Merged
baronfel merged 2 commits intodotnet:release/10.0.2xxfrom
baronfel:fix-missing-analysislevel
Jan 20, 2026
Merged

[release/10.0.2xx] Bump analysislevel constants for .NET 10 release#52487
baronfel merged 2 commits intodotnet:release/10.0.2xxfrom
baronfel:fix-missing-analysislevel

Conversation

@baronfel
Copy link
Member

@baronfel baronfel commented Jan 15, 2026

Fixes #52467 for 10.0.2xx

Customer Issue

Customers attempting to use the "latest" analysislevel in the .NET 10 SDK are getting the 9.0 ruleset instead of the 10.0 ruleset. This leads to expected analysis not happening on their projects. The reason for this behavior is that we did not 'advance' the analysis levels as part of TFM bumping to 10 + preparing for stable releases around RC time.

Customers can workaround this by specifying an AnalysisLevel of preview.

Description

This PR:

  • bumps the hard-coded analysislevel constants to 10 for latest and 11 for preview - the expected values for the .NET 10 release
  • creates the '.NET 10' release snapshot data for the analyzers so the tests that verify the behavior of the latest analysislevel start working again
  • re-enables and adds new tests that will fail when the new TFM is bumped each major version, so that we address this automatically each release

Was this a regression?

  • Yes
  • No
  • Hard to classify - it's a regression in user expectations but the 10.x features are available to use (via analysislevel preview)

Testing

Added/re-enabled tests that demonstrate correct use of the 10 analysislevel rulesets for projects that use latest, and use of the 11 rulsesets for projects that use preview.

Risk

Low - the tests cover this logic quite well, and this procedure is one we've done several times in the past.

We'll want to backport for 1xx as well.

Moving content from unshipped to shipped causes
* a set of files for 10 to get created
* a set of files for 11 (the unshipped next version) to get created

so our tests can pass
@baronfel
Copy link
Member Author

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@baronfel baronfel changed the title Bump analysislevel constants for .NET 10 release [release/10.0.2xx] Bump analysislevel constants for .NET 10 release Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants