Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

'System.Text.Json.ReflectionMemberAccessor' could not be found #4032

Open

Description

@myokeeh

Describe the bug

Projects updated to latest 7.0.2 version now building with this warning:

Embedded manifest in Microsoft.Toolkit.Uwp.UI.Controls.Media: Microsoft.Toolkit.Uwp.UI.Controls.Media.Properties.Microsoft.Toolkit.Uwp.UI.Controls.rd.xml(5): warning : ILTransform : warning ILT0027: Type 'System.Text.Json.ReflectionMemberAccessor' could not be found.

Not seen on version 7.0.0 or 7.0.1

Steps to Reproduce

Steps to reproduce the behavior:

  1. Update to 7.0.2

Environment

NuGet Package(s):  7.0.2

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [x] Insider Build (build number: 19043)

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [x] Insider Build (19043)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 16.9.5) 
- [ ] 2019 Preview (version: )

Activity

  1. added
    bug 🐛An unexpected issue that highlights incorrect behavior
    on May 14, 2021
  2. Kyaa-dost commented on May 17, 2021

    @Kyaa-dost
    Contributor

    @myokeeh can you try recreating your project? Also, please specify the steps you are taking from the beginning.

  3. michael-hawker commented on May 17, 2021

    @michael-hawker
    Member

    @azchohfi I had moved the System.Text.Json version up in our last patch here: f08a351

    I didn't notice any issues in the smoke tests or our unit tests around this. Thoughts?

  4. azchohfi commented on May 17, 2021

    @azchohfi
    Contributor

    That file has changed, and, in theory, to fix the issue we were working around with out rd.xml file:
    dotnet/runtime@c73ef49#diff-f5720afdbbfb4d6676f9ae0daad63b3ddd84a818803f00c2566cdc4c9f5a0ac3
    Maybe we just don't need that line anymore? Not that it matters much, but the rd.xml files do not seem to match the project name, so it took me a while to figure that this was the media one. I would open a separate issue to rename these files to match their projects.

  5. myokeeh commented on May 18, 2021

    @myokeeh
    Author

    @Kyaa-dost, do you still need more info given the last two comments?

  6. added a commit that references this issue on May 18, 2021
  7. michael-hawker commented on May 18, 2021

    @michael-hawker
    Member

    @myokeeh I've tried removing the line that @azchohfi tested here: #4037

    When it builds it should provide a NuGet package you can try by following our preview package steps in our wiki here - would you mind trying that out and seeing if it resolves your issue? (If you can check your project runs in Release as well, that'd be great.)

    Edit: Should be 7.0.0-build.1191+253df42f96

  8. Nirmal4G commented on May 19, 2021

    @Nirmal4G
    Contributor

    @azchohfi

    I would open a separate issue to rename these files to match their projects.

    I also did hit a different issue that prompted me to check and rename these files to match the library name. The changes are already in my PR #3893.

  9. added a commit that references this issue on Aug 12, 2021
  10. added a commit that references this issue on Sep 13, 2021
  11. yoshiask commented on Sep 13, 2021

    @yoshiask
    Contributor

    I just ran into this issue today, even though I updated to 7.0.2 three months ago and successfully built Release packages multiple times since then.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions