在 TFS 下重命名 VS.net 中包含的项目文件夹 [英] Renaming the containing project folder in VS.net under TFS

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

问题描述

我有一个vs.net项目,经过一些重构,修改了项目名称.如何在 TFS 控制的项目和解决方案下轻松重命名基础 Windows 文件夹名称以匹配此新项目名称?
请注意,我曾经可以使用 SourceSafe 在后台摆弄东西...

I have a vs.net project, and after some refactoring, have modified the name of the project. How can I easily rename the underlying windows folder name to match this new project name under a TFS controlled project and solution?
Note, I used to be able to do by fiddling with things in the background using SourceSafe ...

推荐答案

只需右键单击 TFS 中的文件夹,然后选择重命名.提交重命名后,TFS 将为您在磁盘上进行更改.正如 Kevin 指出的那样,您需要确保所有内容都已签入,因为 TFS 将删除旧文件夹及其中的所有内容,并下拉重命名的文件夹,其中包含当前版本的文件.

Just right click on the folder in TFS, and select Rename. Once you commit the rename, TFS will make the changes on disk for you. As Kevin pointed out, you will want to make sure that everything is checked in, because TFS will remove the old folder and everything in it, and pull down the renamed folder with the current version of the files in it.

最后一点:您无法重命名尚未映射或未从中执行获取"操作的文件夹.我不知道为什么,但在这些情况下,TFS 会禁用重命名选项.

One final note: You can't rename a folder that you haven't mapped, or that you haven't done a "Get" from. I don't know why, but TFS will disable the Rename option in these cases.

如果我没记错的话,至少我是这样的.

At least that's what happened to me, if I remember correctly.

这篇关于在 TFS 下重命名 VS.net 中包含的项目文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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