How to change the name of the VS project folder

Create a new empty solution (SolutionTest.sln), create a new webapi project in the folder Api, the physical location is in the Api folder under the solution root directory,

Now if you want to change the folder name from Api to MyApi, you need to do the following steps:

1. Modify the folder name, as shown below:

Modify Api to MyApi.

 

2. Modify the sln file and open it with the technical book, as shown in the figure below:

 

3. If you modify the project name, remember to also include the project's assembly and namespace name, as shown below:

Then replace the name of the namespace in the entire project or solution.

Blog Garden: VisualStudio changes the name of the project folder

Guess you like

Origin blog.csdn.net/soderayer/article/details/114688019