Deprecation information omitted from search result #8719
Labels
Functionality:SDK
The NuGet client packages published to nuget.org
Resolution:BlockedByExternal
Progress on this task is blocked by an external issue. When that issue is completed this can proceed
Type:Feature
Milestone
I am using the
Nuget.Protocol 5.3.0+b75150f2f4127a77a166c9552845e86fb24a3282
nuget package in my C# console app to fetch information about various packages that interest me. I am noticing that I can get deprecation information about a given package if the metadata was obtained by invokingPackageMetadataResource.GetMetadataAsync
. However, the deprecation information for the same pakage is null if the metadata was obtained by invokingPackageSearchResource.SearchAsync
.Here is C# code to reproduce the problem:
The following is output to the console:
As you can see, the result is different based on how the metadata was obtained. My expectation is that the deprecation information should be the same no matter how I retrieve the package metadata.
The code sample I presented in this issue is a simplified version of my actual scenario. In my scenario I use the
SearchAsync
method to retrieve the metadata about several packages (about 400 or so) so I would hate to have to loop through a list of 400 package and invoke theGetMetadataAsync
for each one. I was really hoping to get the deprecation information along with the metadata when searching.The text was updated successfully, but these errors were encountered: