Skip to content

Instantly share code, notes, and snippets.

View ohadschn's full-sized avatar
🎯
SOGTFO

Ohad Schneider ohadschn

🎯
SOGTFO
View GitHub Profile
@AArnott
AArnott / Get-DependenciesOfNuGetPackage.ps1
Created December 6, 2016 22:35
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