Scenario:I wrote an article on the background management system A, and now I want to write an article about the background management system B, the business requirements are basically the same, and the data structure is basically the same, so I want to change the name of project A to B and use it directly.
Steps:
1: Copy a copy of item A to a new folder.
2: Open the solution, select the project, and right-click to view the project properties.Change the project's assembly name and default space.
3: Open the assembly information, modify the title name, and then modify the unique GUID of the project, directly in the sql 2008 database, run select newid(); You can get a GUID (GUID has time as a variable, which can guarantee uniqueness)
4:Open the attribute==》WEB menu, modify the project URL, replace the port number, and ensure that it is unique, otherwise it will not run or other errors.
5:Replace the namespace in the project.
6:Modify the project path in .sln file
7:Modify the folder name to match the name of the namespace
8: Delete the previously generated dll and pdb files.
9:Run the code The project rename is complete.
|