Skip to content

Instantly share code, notes, and snippets.

@jdaigle
Last active August 29, 2015 14:09
Show Gist options
  • Save jdaigle/c21fbcc30f771bd676ac to your computer and use it in GitHub Desktop.
Save jdaigle/c21fbcc30f771bd676ac to your computer and use it in GitHub Desktop.
replace project reference paths for Visual Studio projects/solutions
find . -type f -name *.csproj -exec sed -b -i "s/\(ProjectReference.*\)\(\\\\Shared\\\\\)/\1\\\\src\\\\/ig" {} \;
find . -type f -name *.sln -exec sed -b -i "s/\(Project.*\)\(\"Shared\\\\\)/\1\"src\\\\/ig" {} \;
find src -type f -name *.csproj -exec sed -b -i "s/\(ProjectReference.*\)\(..\\\\..\\\\src\\\\\)/\1..\\\\/ig" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment