Rename the project to a new name. It will automatically change the .csproj file, which in 2010 is the name of the project. Close Visual Studio. Rename the directory.
Open the solution file to change the directory. Your solution file will point to a new project, but will link to the wrong directory.
Before:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stackoverflow_4560662_Rename", "Stackoverflow_4560662\Stackoverflow_4560662_Rename.csproj", "{7CCD10BF-48BA-44E2-B071-D4ED8067ACA1}"
After
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stackoverflow_4560662_Rename", "Stackoverflow_4560662_Rename\Stackoverflow_4560662_Rename.csproj", "{7CCD10BF-48BA-44E2-B071-D4ED8067ACA1}"
Notice the two parts of "Stackoverflow_4560662 \ Stackoverflow_4560662_Rename.csproj" becomes "Stackoverflow_4560662_Rename \ Stackoverflow_4560662_Rename.csproj
This is the only way to rename the directory for the project. Hope someone finds a better answer.
Andrew T Finnell
source share