1
votes

On TFS, I have checked in few files of code against a Work Item today with ID: xxxx. So probably TFS might have created a changeset with a changesetID associating with that check in. Is there a way to get the code(those changed files) checked in against a workitem by just knowing the work item ID. i would like to do it either programatically(c# .net) or using command line. I am a newbie to TFS, so pardon me if i am missing something very simple here. Thanks in advance!

1

1 Answers

1
votes

Check this documentation on msdn for more information about the changeset command and this one for the history command.

For example to view change set details you can type:

tf changeset 8675309 /noprompt

EDIT:

Try this link which contains a c# code that gets the files associated with a work item.