Programatically find TFS changes since last good build

Posted by abigblackman on Stack Overflow See other posts from Stack Overflow or by abigblackman
Published on 2008-10-21T04:58:49Z Indexed on 2010/05/14 7:44 UTC
Read the original article Hit count: 581

Filed under:
|
|

I have several branches in TFS (dev, test, stage) and when I merge changes into the test branch I want the automated build and deploy script to find all the updated SQL files and deploy them to the test database.

I thought I could do this by finding all the changesets associated with the build since the last good build, finding all the sql files in the changesets and deploying them. However I don't seem to be having the changeset associated with the build for some reason so my question is twofold:

1) How do I ensure that a changeset is associated with a particular build?

2) How can I get a list of files that have changed in the branch since the last good build? I have the last successfully built build but I'm unsure how to get the files without checking the changesets (which as mentioned above are not associated with the build!)

© Stack Overflow or respective owner

Related posts about tfs

Related posts about msbuild