简体   繁体   中英

How to get Annotation from TFS using PowerShell?

This document describes how to get the Annotation of a file from TFS: http://msdn.microsoft.com/en-us/library/bb385979.aspx

I am interested in obtaining the Annotation of a file using PowerShell. Any ideas if this is possible and if so, how one would go about doing it?

Since you can run normal MSDOS commands in PowerShell, I'd recomment installing the Team Foundation PowerTools from:

For 2008:

For 2010:

Using "tfpt annotate" and parsing the output.

Grant Holiday talks about automating the process here is you want to pass the whuffie on:

PsTFS from Codeplex is a set of PowerShell commands to manage and use Team Foundation Server. May it help I don't test it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM