通过WebApi获取本地映射文件或目录的TFS信息

问题描述 投票:0回答:1

我想使用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;
c# tfs tfs2015 tfs-sdk
1个回答
1
投票

qazxsw poi是一个web api,它不与本地工作空间和文件交互。如果要获取包含本地项目路径的变更集,请在客户端库中使用Microsoft.Teamfoundation.SourceControl.WebApi

Microsoft.TeamFoundation.VersionControl.Client
© www.soinside.com 2019 - 2024. All rights reserved.