-
Notifications
You must be signed in to change notification settings - Fork 190
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
Installing System.Net.Http using Install-Package fails with "Dependency loop detected for package" #475
Comments
I'm seeing the same behaviour with two unrelated packages on Powershell 6.2.5 running on an Ubuntu machine in Appveyor.
|
I was trying to download "System.Data.SqlClient" with command . |
it's nice that you have workaround, but can someone fix this pls? |
Seems, I'm affected by the same issue. My case arose when I was trying to run the command |
@urbantom it's PowerShell implementation of Nuget provider, it's just awful. It works only with packages without dependencies (or maybe simple dependencies). You can install package with skip dependencies parameter, but you might lose some functionality which is sad. Nuget+PowerShell is total lame. See my gist example and compare |
@MartinHBA Thanks for the info. Indeed, sad news. |
Install-Package Microsoft.Web.Administration -Force -Confirm:$False -RequiredVersion 11.0.0 fails for same reason |
@GehanPanapitiya hopefully it will be addressed in new PowerShellGet v3 |
I am installing packages to a folder using the following pwsh commands:
Register-PackageSource -Location https://www.nuget.org/api/v2 -Name Nuget -ProviderName Nuget -Trusted -force
Install-Package -Name System.Net.Http -ProviderName Nuget -Destination $somedir
It fails with:
It looks like the offending package is System.Diagnostics.DiagnosticSource v4.6.0
Workaround:
Installing in the current order works:
Install-Package System.Diagnostics.DiagnosticSource -RequiredVersion 4.5.1 -Provider nuget
Install-Package System.Net.Http -Provider nuget
Install-Package System.Diagnostics.DiagnosticSource -Provider nuget
I opened an issue (https://github.com/dotnet/corefx/issues/41532) on dotnet core repo, but it seems to be related to this client cmdlets.
The text was updated successfully, but these errors were encountered: