Customizing Team Build
Is there a way I can customize the team build in such a way that, i am able to give a list of work item ids and the build will retrieve only those files associated with that work item Ids and not other changed files from the source control.
This blog explains how to setup your build type so that you can sync to the files of a given changeset. To customize your build as you desire it, you will have to first write a customtask ( shown here ) which will retrieve the list of changesets associated with the given list of workitems ( you can use the public API from the VersionControl and WorkitemTracking client dlls for this specifically the Microsoft.TeamFoundation.WorkItemTracking.Client.LinkCollection and Microsoft.TeamFoundation.VersionControl.Client.Changeset types) and sync to those changesets.
Thanks,
Chaitanya