有没有像PowerShell脚本那样的方法,通过它我们可以每周获得一份TFS合并活动列表? [英] Is there any way like powershell script by which we can get a list of TFS merging activities on weekly basis ?

查看:57
本文介绍了有没有像PowerShell脚本那样的方法,通过它我们可以每周获得一份TFS合并活动列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每周一次,如果我想在我的邮箱中查看报告以查看所有合并的团队项目 

推荐答案

嗨BS_0203,

Hi BS_0203,

感谢您在此发帖。

没有这样的PowerShell默认情况下,您可以尝试在powershell脚本中使用QueryMerges方法:

There is no such PowerShell script by default, you could try to use the QueryMerges method in your powershell script:

https://msdn.microsoft.com/en-us/library/bb138969(v = vs.120).aspx

但是这种方法只能通过versionspec而不是时间来过滤查询。你可以参考我的样本:

But this method can only filter the query by versionspec not time. You could refer to my sample:


tfsCollectionUrl =" http:// XXX:8080 / tfs / DefaultCollection2015U3"
tfsCollectionUrl = "http://XXX:8080/tfs/DefaultCollection2015U3"


server = new-object Microsoft.TeamFoundation.Client.TfsTeamProjectCollection(New-Object Uri(
server = new-object Microsoft.TeamFoundation.Client.TfsTeamProjectCollection(New-Object Uri(


这篇关于有没有像PowerShell脚本那样的方法,通过它我们可以每周获得一份TFS合并活动列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆