When a project is created, the name of the project file is stored with the project. If the name of a project file is changed outside of Visual Studio, the stored project name will not be changed to match. As a best practice, only rename your project or solution from Visual Studio to maintain consistency.
You can rename a project file from the Properties window or through Windows Explorer. The project name is set when the project is first created, but can be renamed through the Solution Explorer.
Caution: While a project file can be renamed through Windows Explorer, it is not recommended to do this. It can break the reference with the solution file or another project file. If you break the reference with a solution or another project, when you open the solution or project file, you will be notified that a reference is missing.
Procedures
To change the name of a project
- In Microsoft Visual Studio, Solution Explorer, right-click the project you want to rename and click Rename.
- In the In-place text editor, enter a new name.
- Press Enter or click outside the in-place text editor to finish renaming the project.