This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19401|Reply: 1

[Tips] . .NET project renaming in detail

[Copy link]
Posted on 7/3/2020 11:04:20 AM | | | |
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.







Previous:Configuration of CentOS system hardware requirements
Next:EF(CodeFirst) + MySQL
Posted on 7/3/2020 11:46:01 AM |
I replace them in batches, rename folders, and then modify the project sln file, and that's it!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com