How to quickly and painlessly rename the work project in visual studio 2008? By stupidity left the standard Windows FormsApplications, now I want to call meaningfully. I tried different options, Google did not help.
1 answer
Renaming the solution folder and the * .sln file doesn’t break anything, it can be done at any time without consequences.
Now rename the nested project:
- In the explorer we find the project folder, rename it.
- In the project folder we find the * .csproj file, rename it.
Further on your choice:
- Double-click on * .sln open the solution in the studio, delete the fallen off project and add the newly renamed from the correct folder.
- Open the project settings and fix the name of the output assembly and the default namespace, if necessary.
- Open * .sln in any text editor => at the beginning of the file all projects included in the solution are listed, we find the necessary => correct the project name, the file name and the path to the file => save => close.
- Open * .csproj in any text editor => fix the namespace, name of the output assembly => check that the paths to the project files do not contain errors => save => close.
In some cases, it may be necessary to make corrections to neighboring draft decisions, if they referred to the modified project, either correct this in the Solution Explorer via the interface of adding links, or also in the corresponding csproj files.
Also, I recommend to get acquainted with the official documentation on the topic of Managing solutions, projects and files
|