2012-03-22 133 views
5

我想知道是否有人知道一個很好的站點,顯示使用TFS 2010 API的示例。Team Foundation Server 2010 API

我想開發一個項目,讓團隊可以查看其他團隊成員簽出的文件/項目。它只是一個系統用戶可以看到開發人員目前正在開發哪些項目。有沒有人有這方面的經驗,可以提供建議開始?

我會用.NET(C#或VB)進行開發,並且應用程序會騎在SQL Server 2008數據庫上。

+1

爲什麼不直接使用http://www.attrice.info/cm/tfs/? – 2012-03-22 17:58:42

+2

你有沒有嘗試MSDN的初學者? – 2012-03-22 17:59:14

+0

我希望你知道你可以使用Visual Studio中的團隊資源管理器窗口來查看其他團隊成員正在處理的事情。 – Bernard 2012-03-22 18:02:08

回答

6

亞歷克斯提到,從Attrice TFS插袋具有此功能。

此外,TFS Power Tools允許您使用「查找源頭控制」看到任何(或全部)用戶檢查哪些文件了。

然而,如果你確實想推出自己的解決方案,你可以這樣做很容易地使用TFS SDK。我讓爲自己的文檔說話,但你可能會想要做的線沿線的東西:

TfsTeamProjectCollection projectCollection = new TfsTeamProjectCollection(new Uri("http://tfs.mycompany.com:8080/tfs/DefaultCollection")); 
VersionControlServer vc = projectCollection.GetService<VersionControlServer>(); 

/* Get all pending changesets for all items (note, you can filter the items in the first arg.) */ 
PendingSet[] pendingSets = vc.GetPendingSets(null, RecursionType.Full); 

foreach(PendingSet set in pendingSets) 
{ 
    /* Get each item in the pending changeset */ 
    foreach(PendingChange pc in set.PendingChanges) 
    { 
     Console.WriteLine(pc.ServerItem + " is checked out by " + set.OwnerName); 
    } 
} 

(注:完全未經測試)

但同樣,我建議你檢查看看這兩個現有項目是否適合您的需求。

+0

+1表示Uri項目收集的具體論據。我沒有在MSDN上找到這個。 – Blanthor 2013-09-20 19:58:36

2

Attrice的TFS Sidekicks已經做到了這一點以及更多。此外,它是免費的

TFS Sidekicks

相關問題