我想从TFS获取文件的名称。我以递归方式从一个位置获取所有文件,然后遍历这些文件以查找特定文件。看来VersionControl.Client.Item对象不公开文件名(或文件夹名)。如何获取项目的文件名? - 团队基础SDK
tfs.EnsureAuthenticated();
VersionControlServer vcs = versionControlServer)tfs.GetService(typeof(VersionControlServer));
var allStaticFiles = vcs.GetItems(path + "*", RecursionType.Full).Items;
foreach (var staticFile in allStaticFiles)
{
if(staticFile == ?? // need the filename)
{
}
TFS 2005/2008或2010? (默认情况下,2010在“插槽模式”下工作,早期版本没有。) – Richard 2011-03-22 16:40:25