JoeyZero
JoeyZero

Reputation: 575

Nuget trying to install a ton of dependencies on certain packages

I am running Visual Studio 2017 with all of my projects in my solution running.NET 4.6.2. My solution has a mix of MVC projects and shared class libraries. On certain nuget packages that have added support for .NET Core, when I go to update to the latest version it wants me to install 20+ additional packages relating to .NET Core and .NET Standard. I have been avoiding installing these newer versions because it seems like I should not need all of these packages. I only seem to have this issue on 4 or 5 packages.

Any solutions?

Nuget Package Update Dialog

Upvotes: 2

Views: 892

Answers (1)

Leo Liu
Leo Liu

Reputation: 76760

it seems like it is probably issues with how people are packaging in nuget.

Yes, you are right. This issue is related to the author who packing the NuGet package. I have ever reported the similar issue on GitHub.

For the package MailChimp.Net.V3, there is a reported issue about installing wrong dependencies: Tons of new dependencies when updating to v3 on .net 4.6.2. This issue has been fixed at the version 3.1.1-alpha.

The package of Mandrill, this package has a dependency NETStandard.Library (>= 1.6.1), so it is correct to install tons of .NET shandard dependencies.

The package of MiniProfiler, which including a dependency of MiniProfiler.Shared (>= 4.0.0-alpha9-00206). This latest version of dependency package should be incorrect, it will install tons of .NET shandard dependencies. To resolve this issue, please install the previous version: MiniProfiler 4.0.0-alpha9-00202:

enter image description here

Hope this helps.

Upvotes: 2

Related Questions