如何查询TFS整套系统里最新创建的项目?由于项目数比较多,我希望通过命令查一下哪个是最新创建的,而不是一个个去点击查看。
有相应的方法吗?
有三种方法
1 参考一下这里,可以自定义一个TFS查询
http://docs.telerik.com/teampulse/silverlight/user-guide/features/synchronization/configuring-sync/use-tfs-query.aspx
输入你需要的条件,保存这个查询,之后每次运行这个查询即可。
2 用代码解决
http://stackoverflow.com/questions/618203/tfs-client-api-query-to-get-work-items-linked-to-a-specific-file
关键的地方
string wiqlQuery = "Select * from Issue where [System.TeamProject] = '"+projectname+"'"; wiqlQuery += " and [System.State] <> 'Deleted'"; wiqlQuery+= " order by ID";
3 WIQL(WIQL is a powerful tool for querying work items in TFS)
专注于.NET MIS开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms