Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to stop .Net NuGet Package Manager from installing other packages while installing Npgsql Package

I’m adding the PosGreSQL NuGet Package to my solution. As a part of this, there are list of other NuGet Packages that are getting installed automatically which I don’t intend to install. How to get rid of this?
Below are the packages installed automatically along with PosGreSQL Nuget Package.
Microsoft.Bcl.AsyncInterfaces.7.0.0, Microsoft.Bcl.HashCode.1.1.1, Microsoft.Extensions.Logging.Abstractions.6.0.0, System.Buffers.4.5.1, System.Collections.Immutable.7.0.0, System.Diagnostics.DiagnosticSource.6.0.0, System.Memory.4.5.5, System.Numerics.Vectors.4.5.0, System.Runtime.CompilerServices.Unsafe.6.0.0, System.Text.Encodings.Web.7.0.0, System.Text.Json.7.0.0, System.Threading.Channels.7.0.0, System.Threading.Tasks.Extensions.4.5.4, System.ValueTuple.4.5.0

I tried deleting the additional Nuget packages manually but Build Solution again adds these NuGet Packages.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

How to get rid of this?

You don’t. Because those are dependencies of the package you want to install. The package you want to use needs those other packages to work.

You should basically just not worry about them, unless a dependency causes a very specific issue. You could potentially pick and choose between different versions of the package you want, to try to find a version with fewer dependencies, but that’s not normally worth doing.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading