React to compiler analyzer warning/error #12837
Open
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.
src\System.Private.Windows.Core\src\System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs(352,74): error IDE0082: 'typeof' can be converted to 'nameof' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0082) [D:\a_work\1\vmr\src\winforms\src\System.Private.Windows.Core\src\System.Private.Windows.Core.csproj::TargetFramework=net10.0]
Noticed in https://dev.azure.com/dnceng-public/public/_build/results?buildId=927853&view=logs&jobId=4c84be64-8e15-55fe-7f7c-5d9633177e7b&j=4c84be64-8e15-55fe-7f7c-5d9633177e7b&t=d42f7fa6-7dc2-51df-d615-9cb71676e73c
Microsoft Reviewers: Open in CodeFlow