Skip to content

Is there a way to avoid dependency on System.Text.Json 10 #668

Description

@rezanid

I am using this amazing library in a VSIX project and I am forced to remain on v6.2.1 because VS relies on System.Text.Json 9.0. I tried the code embedding feature which works only if I reference System.Text.Json v10.0, but VS is blocking me from building when System.Text.Json 9.0 is referenced, because Scriban package still has System.Text.Json 10.0 as dependency.

Any idea how to circumvent this problem?

Build logs:

4>C:\XrmTools.WebApi.Tests.csproj : error NU1605: Warning As Error: Detected package downgrade: System.Text.Json from 10.0.5 to 9.0.0. Reference the package directly from the project to select a different version.
4>C:\XrmTools.WebApi.Tests\XrmTools.WebApi.Tests.csproj : error NU1605:  XrmTools.WebApi.Tests -> Scriban 7.0.6 -> System.Text.Json (>= 10.0.5) 
4>C:\Users\reza\source\repos\rezanid\xrmtools\src\Tests\XrmTools.WebApi.Tests\XrmTools.WebApi.Tests.csproj : error NU1605:  XrmTools.WebApi.Tests -> System.Text.Json (>= 9.0.0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions