Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Jan 22, 2026

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).

Copilot AI review requested due to automatic review settings January 22, 2026 22:48
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_LatestVS from 4.14.0 to 5.4.0-2.26060.102
  • Added MicrosoftCodeAnalysisVersion_5_0 for 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

@sbomer sbomer requested review from agocke and jkoritzinsky January 23, 2026 21:46
@agocke
Copy link
Member

agocke commented Jan 24, 2026

This is probably superseded by #123527

@sbomer
Copy link
Member Author

sbomer commented Jan 24, 2026

Yup, that should unblock flow. I'll leave this open for the style fixes and #123509 (comment).

@agocke
Copy link
Member

agocke commented Jan 24, 2026

Not sure we should take these style changes. Seem more like suggestions than real improvements.

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

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants