Skip to content

Instantly share code, notes, and snippets.

@Ytrog
Created April 10, 2017 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ytrog/3873f4078e64bbb1e283fb1edcbfe112 to your computer and use it in GitHub Desktop.
Save Ytrog/3873f4078e64bbb1e283fb1edcbfe112 to your computer and use it in GitHub Desktop.
cls
$path = "<yourpath>.csproj"
[xml] $file = Get-Content $path
$ns = new-object Xml.XmlNamespaceManager $file.NameTable
$ns.AddNamespace("msb", "http://schemas.microsoft.com/developer/msbuild/2003")
$refs = $file.SelectNodes("//msb:Reference", $ns)
$prefs = $file.SelectNodes("//msb:ProjectReference", $ns)
$summary = $refs + $prefs
$summary | Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment