如何在 Visual Studio 2017 中克隆和重命名项目?

How to clone and rename a project in Visual Studio 2017?

我在 Visual Studio 2017 年有一个项目和解决方案 .sln。如何 重命名 Visual Studio 2017?

它是用 C# 编写的。

终于弄明白了,如下图;

  1. 重命名项目: WindowsFormsApplication2 to NewName
  2. 将输出文件夹重命名为 NewName : WindowsFormsApplication2 to NewName
  3. 使用 VisualStudio 2017 打开解决方案 (WindowsFormsApplication2.sln) 和 Right click to rename WindowsFormsApplication2 to NewName 确保重命名 项目名称和解决方案名称
  4. 从项目-> NewName 属性工具菜单打开解决方案的属性,然后 Rename Assembly Name, ** Default Namespace** also Assembly info with NewName
  5. 打开其中一个 *.cs 文件并将命名空间重命名为: 命名空间 WindowsFormsApplication2命名空间 NewName 在 WindowsFormsApplication2
  6. 上使用右键单击

现在项目和解决方案都应该完全重命名并且能够 build/rebuild。