我有一个项目应该是最新到特定日期的。我有这个代码:
var serverFolder = pathInTfs;
var localFolder = pathInLocalMachin;
var workingFolder = new WorkingFolder(serverFolder, localFolder);
// Create a workspace mapping
workspace.CreateMapping(workingFolder);
if (!workspace.HasReadPermission)
{
throw new SecurityException(
String.Format("{0} does not have read permission for {1}",
versionControl.AuthorizedUser, serverFolder));
}
// Get the files from the repository
workspace.Get(dateForLatest, GetOptions.Overwrite);
一切都很好,但我想在“pathInLocalMachin”中获得最新的唯一目录“pathInTfs”,但是当程序运行 workspace.Get() 每个项目都是最新的。如何在我的项目中获得最新的一条路径。