Update MicrosoftCodeAnalysisVersion_LatestVS#123514
Update MicrosoftCodeAnalysisVersion_LatestVS#123514sbomer wants to merge 8 commits intodotnet:mainfrom
Conversation
To match what is included in the SDK from global.json.
There was a problem hiding this comment.
Pull request overview
This pull request updates the Microsoft.CodeAnalysis (Roslyn) version to match what's referenced in the .NET SDK 10.0.1xx, and addresses code analysis warnings introduced by the newer Roslyn version.
Changes:
- Updated
MicrosoftCodeAnalysisVersion_LatestVSfrom 4.14.0 to 5.4.0-2.26060.102 - Added
MicrosoftCodeAnalysisVersion_5_0for VS 18.0/.NET SDK 10.0.1xx compatibility - Suppressed IDE0071 warning for a necessary
.ToString()call in TypeNameParser - Removed unnecessary
.ToString()calls in MLDsa cryptography implementations
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| eng/Versions.props | Updates Roslyn/Code Analysis versions to align with SDK 10.0.1xx and adds new version property for VS 18.0 compatibility |
| src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeNameParser.cs | Adds pragma warning disable/restore for IDE0071 around Debug.Assert with ReadOnlySpan.ToString() |
| src/libraries/Common/src/System/Security/Cryptography/MLDsaImplementation.Windows.cs | Removes unnecessary ToString() call on ReadOnlySpan in Debug.Fail message |
| src/libraries/Common/src/System/Security/Cryptography/MLDsaCng.Windows.cs | Removes unnecessary ToString() call on ReadOnlySpan in Debug.Fail message |
|
This is probably superseded by #123527 |
|
Yup, that should unblock flow. I'll leave this open for the style fixes and #123509 (comment). |
|
Not sure we should take these style changes. Seem more like suggestions than real improvements. |
|
Tagging subscribers to this area: @dotnet/area-meta |
🤖 Copilot Code Review — PR #123514Holistic AssessmentMotivation: The version update portion of this PR is justified — it aligns Approach: The version bump takes the right approach. The style changes, while individually correct, represent a large-scale refactoring that creates git history noise and increases review burden without functional benefit. Net positive/negative: Mixed. The version update is necessary and valuable, but combining it with 85 files of mechanical style changes makes review harder and is already raising maintainer concerns. Detailed Findings✅ Version Updates — Core changes are technically correctThe version updates in
Flagged by: Claude, GPT
|
Similar to #123509, this updates the MicrosoftCodeAnalysisVersion_LatestVS to match what is included in the SDK from global.json.
It adds a new property that has the 10.0 version (from #123509).