Skip to content

Instantly share code, notes, and snippets.

@joshski
Last active October 12, 2017 08:26
Show Gist options
  • Save joshski/9371861 to your computer and use it in GitHub Desktop.
Save joshski/9371861 to your computer and use it in GitHub Desktop.
Find bad hint paths in csproj files
get-childitem . -include *.csproj -rec | select-string -pattern "<HintPath>[^<]+</HintPath>" | % { $_ -replace '</?HintPath>',"" } | % { write-host $_; $_ } | % { $_ -replace '[^\\]*.csproj:\d+:',"" } | % { $_ -replace '\s+','' } | % { resolve-path $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment