我想使用Teamfoundation.SourceControl.WebApi
来检查我们的TFS源代码控制的更新或本地更改。
我可以从提交TFS的项目中收集有关变更集的信息,但我无法根据映射工作空间内的本地文件路径收集此信息。
在不使用ExtendedClient
的情况下是否可能?
我想要这样的东西:
TfvcChangesetSearchCriteria tcsc = new TfvcChangesetSearchCriteria();
tcsc.ItemPath = @"c:\source\mappedtfs\MYPROJECT\src\MainWindow.cs";/*<--- localPath would be nice here*/
List<TfvcChangesetRef> changerefs = tfvcHttpClient.GetChangesetsAsync("MYPROJECT", null, null, null, null, tcsc).Result;
qazxsw poi是一个web api,它不与本地工作空间和文件交互。如果要获取包含本地项目路径的变更集,请在客户端库中使用Microsoft.Teamfoundation.SourceControl.WebApi
。
Microsoft.TeamFoundation.VersionControl.Client