-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Update MicrosoftCodeAnalysisVersion_LatestVS #123514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
To match what is included in the SDK from global.json.
There was a problem hiding this 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_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. |
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).