Skip to content

Newtonsoft.Json version mismatch in stage 2 for release/8.0.1xx #3629

Closed
@tmds

Description

@tmds

When building stage 2 for release/8.0.1xx, our CI is failing to build runtime due to a Newtonsoft.Json version mismatch:

    /home/tester/dotnet/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj : error NU1605: Warning As Error: Detected package downgrade: Newtonsoft.Json from 13.0.3 to 13.0.1. Reference the package directly from the project to select a different version.  [/home/tester/dotnet/src/runtime/artifacts/source-build/self/src/Build.proj]
    /home/tester/dotnet/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj : error NU1605:  Microsoft.NETCore.Platforms_temp -> NuGet.ProjectModel 6.8.0-rc.32767 -> NuGet.DependencyResolver.Core 6.8.0-rc.32767 -> NuGet.Protocol 6.8.0-rc.32767 -> NuGet.Packaging 6.8.0-rc.32767 -> Newtonsoft.Json (>= 13.0.3)  [/home/tester/dotnet/src/runtime/artifacts/source-build/self/src/Build.proj]
    /home/tester/dotnet/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj : error NU1605:  Microsoft.NETCore.Platforms_temp -> Newtonsoft.Json (>= 13.0.1) [/home/tester/dotnet/src/runtime/artifacts/source-build/self/src/Build.proj]
      Failed to restore /home/tester/dotnet/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj (in 2.68 sec).
    
    Build FAILED.

The artifacts tarball from the stage 1 build contains 13.0.3, but the build prefers to have 13.0.1.

cc @MichaelSimons @mthalman @omajid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions