[release/5.0] Update SYSLIB0012 obsoletion messages to be clear and consistent #41483
+5
−5
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.
Backport of #41467 to release/5.0
/cc @jeffhandley
Customer Impact
The obsoletion message that was documented for
SYSLIB0012
was unclear without surrounding context; it didn't state which APIs were obsolete nor did it state which Type theLocation
property was on.Additionally, we found that the message used in
src
was different from what was on theref
assembly; theref
assembly had a clearer message. This makes the messages consistent across them while also adding the context for improved clarity.Testing
Verified by introducing a violation (unsuppressing one of our internal suppressions) and reviewing the error message seen.
Risk
Very low. This is changing string literals used in
Obsolete
attributes.