如何在Visual Studio中重命名项目文件夹? [英] How can I rename a project folder from within Visual Studio?

查看:364
本文介绍了如何在Visual Studio中重命名项目文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前用于重命名项目文件夹的解决方案是:

My current solution for renaming the project folder is:

  • 从解决方案中删除项目.
  • 重命名Visual Studio外部的文件夹.
  • 将项目重新添加到解决方案中.

有更好的方法吗?

推荐答案

TFS用户::如果您使用的源代码管理要求您在重命名文件/文件夹之前发出警告,请查看

TFS users: If you are using source control that requires you to warn it before your rename files/folders then look at this answer instead which covers the extra steps required.


要在Visual Studio中重命名项目的文件夹文件(.*proj)和显示名称:


To rename a project's folder, file (.*proj) and display name in Visual Studio:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆