River 今天跑來問我,
為什麼 Team System 在整合 Check In 與 WorkItem 時, 沒有細分 哪一種 WorkItem 對應到 哪個 Team Project.
Well. 說來話長... 實在太難說了... 有 高手 把這個 工具化的彈性 綁得更死一點
Link to Steven Wilssens - Work Item Association during check-in ..... skip // Retrieve the team project name for the pending changestring affectedTeamProjectName = matchTeamProject.Match(affectedTeamProjectPath).Value;if (affectedTeamProjectName != info.WorkItem.Project.Name){failures.Add(new PolicyFailure(string.Format("Work item with ID '{0}', is not a work item for team project '{1}'.",info.WorkItem.Id, matchTeamProject.Match(affectedTeamProjectName).Value), this));}}}return failures.ToArray();}
Link to Steven Wilssens - Work Item Association during check-in
..... skip
// Retrieve the team project name for the pending changestring affectedTeamProjectName = matchTeamProject.Match(affectedTeamProjectPath).Value;if (affectedTeamProjectName != info.WorkItem.Project.Name){failures.Add(new PolicyFailure(string.Format("Work item with ID '{0}', is not a work item for team project '{1}'.",info.WorkItem.Id, matchTeamProject.Match(affectedTeamProjectName).Value), this));}}}return failures.ToArray();}