Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 2, 2021

Backport of #58405 to release/6.0

Fixes #58320

/cc @steveharter

Customer Impact

Using both[obsolete] and [JsonIgnore] on a property of a serializable POCO with the source generator causes a CS0618 compile warning due to the obsolete property being referenced by generated code. This was reported by the community.

Testing

A test was added to verify this case; the source generator no longer references the property setter\getter.

Risk

Low; code changes are small and localized to the generation of the delegate to the setter\getter.

@ghost
Copy link

ghost commented Sep 2, 2021

Tagging subscribers to this area: @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #58405 to release/6.0

/cc @steveharter

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@danmoseley
Copy link
Member

approved. low risk fix to new feature, customer reported.

@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Sep 3, 2021
@danmoseley danmoseley merged commit 317dd69 into release/6.0 Sep 3, 2021
@danmoseley danmoseley deleted the backport/pr-58405-to-release/6.0 branch September 3, 2021 00:13
@ghost ghost locked as resolved and limited conversation to collaborators Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.Json Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants