tf dir没有工作文件夹映射

时间:2012-09-25 03:01:49

标签: tfs tfs2010 tfsbuild tf-cli

我正在编写构建脚本,并且我试图通过命令行从TFS获取文件,但无法让它们正常工作。始终收到消息“所有文件都是最新的”,而不存在任何文件。

我删除现有工作区并创建新工作区并映射到本地文件夹。所有这些都可以正常运行。但是之后我无法获取文件。可能有什么不对。我需要采取哪些其他步骤来诊断它。

以下是命令和结果列表:

 D:\temp\tfs\Dev>tf workfold
 ====================================================================

 Workspace:  xantworkspace

Collection: https://dev.company.com/tfs/

 $/allProjects/MobileProject/Dev: D:\temp\tfs\Dev

 D:\temp\tfs\Dev>tf dir


 There is no working folder mapping for D:\temp\tfs\Dev.


 D:\temp\tfs\Dev>tf get

 All files up to date.


 D:\temp\tfs\Dev>tf get /all

 All files up to date.

 D:\temp\tfs\Dev>cd ..

 D:\temp\tfs\Dev>tf get /all /force

All files up to date.

D:\temp\tfs\Dev>tf get /all /force /overwrite
All files up to date.

D:\temp\tfs\Dev>tf get /all /force /overwrite /recursive

All files up to date.

D:\temp\tfs\Dev>tf get /all /force /overwrite /recursive /version:T

All files up to date.

在TFS中,$ / allProjects / MobileProject / Dev下面有文件,文件夹。

2 个答案:

答案 0 :(得分:0)

您是不是偶然使用了Team City?如果是这样,Team City有两种不同的代理商。一个人创建一个不以TFS为中心的工作空间(默认)。另一个与TFS连接,可以像普通工作区一样使用。

答案 1 :(得分:0)

I've had similar experiences with TFS before when I've been given read but not write permissions. Giving my user account read/write was the only fix that let me actually get the files.