-
Notifications
You must be signed in to change notification settings - Fork 258
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
Why nuget install many dll dependenices in FFW 4.6.1 for the the package CommandLineParser, while only one package is installed in FFW 4.6 and 4.5 #7263
Comments
Hey @moh-hassan. thanks for opening the issue. This happens because Here is a similar issue to this. As that issue says:
I would suggest contacting the package owner and working with them to get this fixed! Let me know if this answers your question. |
@PatoBeltran
The final dependency in CommandLineParser.nuspec is as follows:
I test by loading the package from file system as POC and ONE and only one package is installed :) in net461, 462 and even net471. nuget tool says:
packages.config file contents is becoming:
I will contact the package owner and working with them to get CommandLineParser.nuspec fixed Many thanks for help and support. |
Awesome to hear that! Will close this issue since it has been resolved. |
## Details about Problem
NuGet product used (NuGet.exe | VS UI : VS UI
NuGet version (4.3.0.4406)
VS version (if appropriate):VS 2017 update3
OS version (i.e. win10 v1607 (14393.321)): windows7 sp1
## Detailed repro steps so we can see the same problem:
Create console project FFW 4.6 in vs 2017 update 3
Run the command: Install-Package CommandLineParser
UnInstall-Package CommandLineParser
Change the properties of the project to FFW 4.6.1
Install-Package CommandLineParser
The contents of package.config file are:
The package CommandLineParser has multi-target net40, net45 and netstandard1.5.
The package has no dependency in case of net45 and net40, but in netstandard1.5 it has a dependency of the above listed packages.
see dependencies in package site:
What is the problem:
Why in Full Framework 4.6.1 (also 4.6.2) all these packages are installed, While in 4.6 and 4.5, only one package is installed.
It seems that nuget selects netstandard1.5 package with its dependencies .
The project isn't netstandard1.5 but FFW 4.6.1.
How to avoid installing all these package?
The text was updated successfully, but these errors were encountered: