Nicholas
Nicholas

Reputation: 161

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?

Upvotes: 13

Views: 16688

Answers (2)

Mark Tolonen
Mark Tolonen

Reputation: 178031

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 :^)

Upvotes: 37

Joe White
Joe White

Reputation: 97818

Select the project node in Solution Explorer, then click on its name again -- just like you would rename anything in Windows Explorer.

Upvotes: -2

Related Questions