Let’s assume we’re working on a project called MyProject.
I’d like to be able to change its name to MyProject2 AND have its folder name also renamed to MyProject2.
Is this possible from Visual Studio? If not, how to make this happen “outside” it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rename your project to your new name. It will change the .csproj file automatically which in 2010 is the name of the project. Close Visual Studio. Rename the directory.
Open your solution file to change directory now. Your solution file will point to the new project but will reference the wrong directory.
Before:
After
Notice the two parts
“Stackoverflow_4560662\Stackoverflow_4560662_Rename.csproj” becomes
“Stackoverflow_4560662_Rename\Stackoverflow_4560662_Rename.csproj”
This is the only way I’ve been able to rename a directory for a project. I hope someone finds a better answer.