Skip to content

Instantly share code, notes, and snippets.

@RhysC
Created February 23, 2011 15:11
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 RhysC/840533 to your computer and use it in GitHub Desktop.
Save RhysC/840533 to your computer and use it in GitHub Desktop.
This script changes the hint path to a level deeper from http://blog.commandlinekungfu.com/2009/05/not-ready-yet-episode-replacing-strings.html
Get-ChildItem -exclude *.bak -Recurse -Include *.csproj |
Where-Object {$_.Attributes -ne "Directory"} |
ForEach-Object {
Copy-Item $_ "$($_).bak";
(Get-Content $_) -replace "<HintPath>..\\..\\Lib","<HintPath>..\\..\\..\\Lib" | Set-Content -path $_
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment