Description
The NuGet team had a request for dotnet nuget why to output both requested and resolved versions, whereas the command was previously outputting only the resolved version.
This can break scripts that automatically parse the command output and expect the previous format
This change will take effect in the .NET 10.0.400 SDK
Version
.NET 10
Previous behavior
As can be seen in the original feature request:
dotnet nuget why previously would output a package information similar to System.Text.Json (v9.0.0-rc.2.24427.10)
New behavior
As can be seen in the pull request implementing the change: NuGet/NuGet.Client#7344
the format is now changing to System.Text.Json@10.0.1 (>= 9.0.0)
Type of breaking change
Reason for change
When investigating why a transitive package is using the resolved version, it's helpful to understand what each of the requested versions are from the packages that list it as a dependency.
Recommended action
If you use a regex or similar to parse the output of dotnet nuget why, update it to handle the new output format. If some team members or CI agents are running older versions of the .NET SDK, the regex or parsing should support both formats.
Feature area
SDK
Affected APIs
No response
Associated WorkItem - 574431
Description
The NuGet team had a request for
dotnet nuget whyto output both requested and resolved versions, whereas the command was previously outputting only the resolved version.dotnet nuget why, not final resolved versions NuGet/Home#13752This can break scripts that automatically parse the command output and expect the previous format
This change will take effect in the .NET 10.0.400 SDK
Version
.NET 10
Previous behavior
As can be seen in the original feature request:
dotnet nuget why, not final resolved versions NuGet/Home#13752dotnet nuget whypreviously would output a package information similar toSystem.Text.Json (v9.0.0-rc.2.24427.10)New behavior
As can be seen in the pull request implementing the change: NuGet/NuGet.Client#7344
the format is now changing to
System.Text.Json@10.0.1 (>= 9.0.0)Type of breaking change
Reason for change
When investigating why a transitive package is using the resolved version, it's helpful to understand what each of the requested versions are from the packages that list it as a dependency.
Recommended action
If you use a regex or similar to parse the output of
dotnet nuget why, update it to handle the new output format. If some team members or CI agents are running older versions of the .NET SDK, the regex or parsing should support both formats.Feature area
SDK
Affected APIs
No response
Associated WorkItem - 574431