Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tfs “中是否有错误?”;tf添加/递归“;?_Tfs_Tf Cli - Fatal编程技术网

Tfs “中是否有错误?”;tf添加/递归“;?

Tfs “中是否有错误?”;tf添加/递归“;?,tfs,tf-cli,Tfs,Tf Cli,我正在尝试将以下文件夹树添加到TFS: C:\TFS\folder1 C:\TFS\folder1\folder2 C:\TFS\folder1\folder2\folder3 C:\TFS\folder1\folder2\folder3\test.txt 在上面的示例中,文件夹“C:\TFS”是一个映射的TFS工作文件夹。我从控制台发出以下命令: cd C:\TFS tf add folder1 /recursive 此命令完成后,我的存储库包含以下树(作为挂起的更改): 如您所见,下面的

我正在尝试将以下文件夹树添加到TFS:

C:\TFS\folder1
C:\TFS\folder1\folder2
C:\TFS\folder1\folder2\folder3
C:\TFS\folder1\folder2\folder3\test.txt
在上面的示例中,文件夹“C:\TFS”是一个映射的TFS工作文件夹。我从控制台发出以下命令:

cd C:\TFS
tf add folder1 /recursive
此命令完成后,我的存储库包含以下树(作为挂起的更改):

如您所见,下面的“folder3”和文本文件“test.txt”完全丢失了!为什么?

更新:我已将此作为错误提交给Microsoft:

为我工作

c:\Temp>md Test\1\2\3\4\5

c:\Temp>dir test /s/b
c:\Temp\test\1
c:\Temp\test\1\2
c:\Temp\test\1\2\3
c:\Temp\test\1\2\3\4
c:\Temp\test\1\2\3\4\5

c:\Temp>cd test

c:\Temp\Test>tf add 1 /recursive
1

1:
2

1\2:
3

1\2\3:
4

1\2\3\4:
5

c:\Temp\Test>
在Tfs中


如果我从microsoft的Test或更高的Test directory执行此操作,基本命令如下所示:

tf add itemspec [/lock:(none|checkin|checkout)] [/type:filetype] 
[/noprompt] [/recursive] [/login:username,[password]] 
我输入了以下命令,效果很好:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" add itemspec /r "where to add to"

从要复制文件的文件夹中运行命令,然后在“添加到何处”下的命令中键入目标

好吧,我不需要!您是否将工作目录设置为“C:\Temp”?不管我怎么做,tf.exe只增加了两个级别。我想是这样的——如果你看上面,我做了一个“cd测试”。Temp在工作区中。就像我说的,我也在临时目录下试过。同样的结果。只是一个想法,我将TFS 2008与VS2008+团队资源管理器2008 SP1一起使用。我使用了团队资源管理器2005和2008(我认为都是最新的service pack,不过我会检查一下)。我不确定TFS的版本,但我也会检查一下。
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" add itemspec /r "where to add to"