Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Downloads the list of nuget packages that depend on a named package
$PackageId = "Microsoft.VisualStudio.Threading"
$wr = Invoke-WebRequest "http://packages.nuget.org/v1/FeedService.svc/Packages?`$filter=substringof(%27$PackageId%27,%20Dependencies)%20eq%20true&`$select=Id,Version,Dependencies"
if ($wr.StatusCode -ne 200) {
Write-Error $wr.StatusDescription
return
}
$xml = [xml]$wr.content
$xml.feed.entry.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.