且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TFS:待删除+添加=>文件重命名

更新时间:2023-12-05 20:53:28

您可以使用 TFS API 重命名.在您的情况下,您只需要让 TFS 知道发生了什么,而无需更改磁盘上的任何内容.因此,使用 Workspace.PendRename 方法并指定 updatedisk 的代码>false.

You can rename using the TFS API. In your case, you only need to let TFS know what happened and do not need to change anything on disk. Thus, use the Workspace.PendRename method and specify false for updatedisk.