📜  visual studio 更改程序集名称 - 程序集代码示例

📅  最后修改于: 2022-03-11 14:48:10.509000             🧑  作者: Mango

代码示例1
This is how you do it:
* Right-click the project in Solution Explorer, select Rename, and enter the new name
* Right-click the project again and select Properties. Change the "Assembly name" and "Default namespace" on the Application tab.
* Right-click the project again and select Refactor -> Adjust Namespaces. Accept the changes.
* Change the AssemblyTitle and AssemblyProduct in Properties/AssemblyInfo.cs
* Delete bin and obj directories in Windows Explorer
* Open the Source Control Explorer and rename the project's directory. This will close the solution. Let it be closed.
* Open the SLN file (with a text editor such as Notepad++) and change the path to the project (there should be multiple places).
* Open the Solution again. Clean and Rebuild the project.