Download only necessary NuGet packages

Szyszka947

When I want to do my own NuGet package with custom authentication scheme, I need to download Microsoft.AspNetCore.Authentication that contains AuthenticationScheme class. I need only this one class but together with this package there is downloaded 36 transitive packages. How can I reject these packages? Is it possible?

Jocke

When you take onboard a new dependency you implicitly takes on its transitive dependencies. If you start messing with it then code you want to depend on will not work. It is just the price you pay for the dependency.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Is it necessary to update all nuget packages when upgrading a project?

Is there a way to automatically import necessary NuGet packages, when using a snippet?

Download all packages from private nuget feed

Errors resolving NuGet Packages after TFS Download

Download only selected .NET version of a Nuget Package

NuGet can't find/download packages after upgrade to 3.4

Force NuGet to download packages built to project .Net version

NuGet package browsing: How to see packages ordered by download count (descending)

How to use packages download from nuget on Mac (Mono)

where does Nuget download packages when PackageReference is enabled

How to publish only selected NuGet packages from Azure Pipeline to Artifactory?

How do I mirror nuget packages only from a specified owner?

Can AppVeyor do auto publishing of nuget packages only for specific branch?

How can I download a nuget package only for a specific platform?

How to hide or restrict user to download only dependent package from nuget?

How to download NuGet packages programatically from .NET Core, .NET Standard projects

Cannot modify NuGet packages

Testing nuget packages locally

NuGet error restoring packages

Nuget Packages are there but missing References

Build Error with NuGet packages

Restoring NuGet packages to the cache

NuGet Packages are missing

CPack NuGet Packages

nuget packages in local work

Versions not resolving for Nuget packages

Checking in the nuget packages

Nuget packages and their dependency trees

Offline Nuget Packages