Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename the name of project in VS2010

I have to remame the projcet name from AAA to BBB in VS2010. What can I do?

like image 480
Nicholas Avatar asked Aug 30 '12 02:08

Nicholas


1 Answers

To rename every detail of a project:

  1. Right-click and rename the project in Solution Explorer.
  2. Right-click and rename any related .cpp and .h files.
  3. Right-click the project and select "Remove". Confirm saving any changed files.
  4. Exit Visual Studio.
  5. Rename the project's directory.
  6. Rename the project's .vcxproj and .vcxproj.filters files.
  7. 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.
  8. Start Visual Studio and load the .sln file.

  9. Right-click the solution and add the project again.
  10. Put some thought into new project names so you don't have to do this again :^)
like image 187
Mark Tolonen Avatar answered Oct 14 '22 20:10

Mark Tolonen