Repository navigation
build: Microsoft.CodeAnalysis.NetAnalyzers 11.0.100 (#829, step 1) - #838
Merged
Merged
Conversation
The GA analyzer package for the .NET 11 SDK. Measured on the GA SDK with AnalysisLevel 10: no new diagnostic across the solution, and the AD0001 crash of DoNotPassDisposablesIntoUnawaitedTasksAnalyzer (CA2025), which 10.0.402 and 10.0.404 both hit, is gone. That crash blocks the expiry row in #758. AnalysisLevel and LangVersion are unchanged; they are later steps of #829.
This was referenced Nov 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Microsoft.CodeAnalysis.NetAnalyzersmoves from 10.0.402 to 11.0.100, the GA analyzer package for the pinned .NET SDK11.0.100. This is step 1 of #829.AnalysisLevel(10.0) andLangVersionare unchanged; those are later steps.Refs #829
Why
The 10.0.x package crashes on one valid test shape. This is the expiry row that #758 waits for. On
OpenCode.Sdk.Tests, the analyzerDoNotPassDisposablesIntoUnawaitedTasksAnalyzer(CA2025) throws:It throws on every TFM. The reduced trigger is one line in
TerminalSocketCoreTests.SendAsync_Should_Expire_A_Queued_Call_Without_Closing_The_Socket:Measured on this branch's head (Release,
--no-incremental, warnings not escalated, so every diagnostic is counted; the trigger was applied, then reverted):NetAnalyzersAD0001lines with the triggerAn earlier probe also found 10.0.404 crashing the same way, so only 11.0.100 fixes it. Without the trigger, the whole solution has no diagnostic at either version (
AnalysisLevel10.0). So this PR adds no new rule finding and no suppression. The expiry row itself stays with #758.The analyzer is
PrivateAssets=all, so the packages and their consumers see no difference, and there is no CHANGELOG entry.Verification
0de0be16, SDK11.0.100: GATE PASS on both parts. Static: build 0 warnings, 0 errors; slopwatch, format and the clone gate clean. Tests: 15,521 of 15,521; the service-election leg 27 of 27.project.assets.jsonresolvesMicrosoft.CodeAnalysis.NetAnalyzers/11.0.100, in bothsrc/OpenCode.Sdkandtests/OpenCode.Sdk.Tests.