Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Forked from aaronpowell/gist:d798507cbca08d86b41a
Last active August 29, 2015 14:00
Show Gist options
  • Save jstangroome/c1971f74e1fdee712dd1 to your computer and use it in GitHub Desktop.
Save jstangroome/c1971f74e1fdee712dd1 to your computer and use it in GitHub Desktop.
Get-ChildItem -Filter *.csproj -Recurse |
Select-Xml -XPath //b:Reference -Namespace @{b='http://schemas.microsoft.com/developer/msbuild/2003'} |
Select-Object -Property Path,
@{ N='Include'; E={$_.Node.Include} },
@{ N='HintPath'; E={$_.Node.HintPath} } |
Where-Object {
$_.HintPath -ne $null -and
$_.Include -eq "My.Assembly.Name"
} |
Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment