Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NuGet.org Bug]: Empty dependencies list for .NET tools #10020

Open
scottaddie opened this issue Jun 11, 2024 · 1 comment
Open

[NuGet.org Bug]: Empty dependencies list for .NET tools #10020

scottaddie opened this issue Jun 11, 2024 · 1 comment
Labels

Comments

@scottaddie
Copy link

Impact

It's more difficult to complete my work

Describe the bug

When viewing the Dependencies tab for a .NET tool package on nuget.org, no dependencies are listed. For example:

image

This is a lie, since I can navigate to the *.csproj file and clearly see the dependencies. But, I shouldn't have to dive into the source to determine which dependencies exist.

Repro Steps

  1. Navigate to https://www.nuget.org/packages/dotnet-sqlcache
  2. Click the Dependencies tab and notice the message "This package has no dependencies"
  3. Navigate to the source code and notice the 3 dependencies listed

Expected Behavior

The dependencies listed in the *.csproj file should be displayed on the Dependencies tab. In the case of dotnet-sqlcache, I'd expect to see these dependencies listed:

  • Microsoft.Data.SqlClient
  • Azure.Identity
  • System.Private.Uri

Screenshots

No response

Additional Context and logs

No response

@joelverhagen
Copy link
Member

Yes, this is a legitimate issue. The reason this is the case today is that NuGet.org only reads the <dependencies> node in the .nuspec to populate this tab. For tool packages, this metadata does not exist. We would need to either change the tool authoring to add this metadata in a new/existing way or glean dependencies from another artifact inside the package. More details are here in a closed, related issue:
#8323 (comment)

@erdembayar erdembayar added Triaged feature-request Customer feature request and removed Type:Bug labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants