I have to remame the projcet name from AAA to BBB in VS2010. What can I do?
To rename every detail of a project:
- Right-click and rename the project in Solution Explorer.
- Right-click and rename any related .cpp and .h files.
- Right-click the project and select "Remove". Confirm saving any changed files.
- Exit Visual Studio.
- Rename the project's directory.
- Rename the project's .vcxproj and .vcxproj.filters files.
-
Search the project's folder for any references to the old project name in file contents.
Typical places are:
- Comments in the project's main .cpp file.
- Comments in stdafx.cpp.
- A <RootNamespace> entry in the project's .vcxproj file.
Start Visual Studio and load the .sln file.
- Right-click the solution and add the project again.
- Put some thought into new project names so you don't have to do this again :^)