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

查看:117
本文介绍了重命名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天全站免登陆