Skip to content

How do I use System.Text.Json in a .NetStandardLibrary 2.1? #31442

Description

@aligneddev

File new project > .NetStandardLibrary 2.1 (for a .Net Core 3.0 project).

 public class Class1
    {
        public void test()
        {
            JsonSerializer
        }
    }

I can't add the System.Text.Json NuGet package and adding the using doesn't work.

Can I use System.Text.Json in .NetStandardLibrary2.1?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions