Package authors are really enjoying the download statistics on nuget.org, but we've heard some feedback pretty consistently that it's hard to tell if package installations are direct or because of being a dependency.
To help package authors differentiate, NuGet can specify a different NuGet-Operation HTTP header for package installations that are due to a dependency vs. direct installation.
! Direct Installation
NuGet-Operation: Install
! Direct Update
NuGet-Operation: Update
! Installation to Fulfill a Dependency
NuGet-Operation: Install-Dependency
! Update to Fulfill a Dependency
NuGet-Operation: Update-Dependency
Additionally, when a package is being installed/updated to fulfill a dependency requirement, we should also specify the package that had the dependency (the one being directly installed/updated). This can be specified as an additional HTTP header, name TBD.
To help package authors differentiate, NuGet can specify a different NuGet-Operation HTTP header for package installations that are due to a dependency vs. direct installation.
! Direct Installation
NuGet-Operation: Install
! Direct Update
NuGet-Operation: Update
! Installation to Fulfill a Dependency
NuGet-Operation: Install-Dependency
! Update to Fulfill a Dependency
NuGet-Operation: Update-Dependency
Additionally, when a package is being installed/updated to fulfill a dependency requirement, we should also specify the package that had the dependency (the one being directly installed/updated). This can be specified as an additional HTTP header, name TBD.