Skip to content

Instantly share code, notes, and snippets.

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 "`$filter=substringof(%27$PackageId%27,%20Dependencies)%20eq%20true&`$select=Id,Version,Dependencies"
if ($wr.StatusCode -ne 200) {
Write-Error $wr.StatusDescription
$xml = [xml]$wr.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment