Skip to content

[7.0] System.Net.Http.Json nuget issue in allconfigurations #81914

@carlossanlop

Description

@carlossanlop

After merging this backport PR: #80553

I looked at the public rolling builds for 7.0 and noticed a windows all-configurations failure related to the nuget package System.Net.Http.Json, which unfortunately did not show up in the PR CI.

artifacts\bin\testPackages\projects\System.Net.Http.Json\project.csproj(0,0): error NU1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Unable to find package System.Text.Json with version (>= 7.0.2)
  - Found 1560 version(s) in dotnet7 [ Nearest version: 7.0.0-rtm.22511.4 ]
  - Found 98 version(s) in dotnet-public [ Nearest version: 7.0.1 ]
  - Found 1 version(s) in dotnet-eng [ Nearest version: 5.0.0-alpha.1.19618.1 ]
  - Found 1 version(s) in dotnet7-transport [ Nearest version: 7.0.0-rc.1.22426.10 ]
  - Found 0 version(s) in D:\a\_work\1\s\artifacts\packages\Release\
  - Found 0 version(s) in richnav
  - Found 0 version(s) in darc-pub-dotnet-emsdk-ba16583
  - Found 0 version(s) in dotnet-libraries
  - Found 0 version(s) in dotnet-tools

Looking at the System.Net.Http.Json.csproj change history, I see that the above PR was the first one to modify the project, so the OOB changes look right (version 1 bump): https://github.com/dotnet/runtime/commits/release/7.0/src/libraries/System.Net.Http.Json/src/System.Net.Http.Json.csproj

Since the error is complaining about System.Text.Json specifically, I checked its change history too, and the last time it was modified was in the branding PR from a couple days ago, which simply turned off the GeneratePackageOnBuild property, but the servicing version remains as 2: e35c90f

I am not sure I understand the reason for the complaint. @ViktorHofer @ericstj any ideas?

{
  "ErrorMessage": "Unable to find package System.Text.Json with version (>= 7.0.2)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions