{"id":2153,"date":"2007-07-25T23:57:13","date_gmt":"2007-07-25T23:57:13","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/07\/25\/how-to-build-without-having-the-timestamp-change-on-every-file-in-the-builds-workspace\/"},"modified":"2007-07-25T23:57:13","modified_gmt":"2007-07-25T23:57:13","slug":"how-to-build-without-having-the-timestamp-change-on-every-file-in-the-builds-workspace","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-build-without-having-the-timestamp-change-on-every-file-in-the-builds-workspace\/","title":{"rendered":"How to build without having the timestamp change on every file in the build&#8217;s workspace"},"content":{"rendered":"<p>A question came up a couple of times recently about an issue with the timestamps on the files involved in a build always being the current time.&nbsp; The issue is that folks have customized their deployment process to deploy only files where the timestamps are newer.&nbsp; Folks then ask for an option to have get set the timestamp to the timestamp when the file was checked rather than when it was downloaded.&nbsp; I don&#8217;t think that&#8217;s the&nbsp;best answer in this case (and if you aren&#8217;t doing a clean build, it&#8217;s not an answer at all, since that will lead to botched builds).<\/p>\n<p>The biggest culprit here is likely that the default behavior for Team Build is to create a new workspace and get all of the files for every build.&nbsp; We&#8217;ve left that default in place in for TFS 2008, but we may change it in the future.<\/p>\n<p>You can change Team Build to get only the files that have changed since the last build by having it not create a new workspace each time and doing an incremental get.&nbsp; Aaron wrote a post about <a href=\"http:\/\/blogs.msdn.com\/aaronhallberg\/archive\/2007\/01\/03\/doing-an-incremental-get-in-team-build.aspx\">how to do incremental gets in TFS 2005<\/a>.&nbsp; It&#8217;s a simple&nbsp;matter of <a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2007\/07\/24\/tfs-2008-some-properties-that-you-can-use-to-customize-your-build.aspx\">setting IncrementalGet to true in TFS 2008<\/a>.<\/p>\n<p>After making the appropriate change, you&#8217;ll want to switch to incremental builds if you need to have the&nbsp;binaries&nbsp;updated only when the&nbsp;corresponding&nbsp;source files change&nbsp;(there are links for that in the posts referenced earlier).<\/p>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:b18bf075-8dbc-4245-a864-1258387148a3\" style=\"padding-right: 0px;padding-left: 0px;padding-bottom: 0px;margin: 0px;padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20build\" rel=\"tag\">team build<\/a>, <a href=\"http:\/\/technorati.com\/tags\/tfs%202008\" rel=\"tag\">tfs 2008<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A question came up a couple of times recently about an issue with the timestamps on the files involved in a build always being the current time.&nbsp; The issue is that folks have customized their deployment process to deploy only files where the timestamps are newer.&nbsp; Folks then ask for an option to have get [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,8],"class_list":["post-2153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>A question came up a couple of times recently about an issue with the timestamps on the files involved in a build always being the current time.&nbsp; The issue is that folks have customized their deployment process to deploy only files where the timestamps are newer.&nbsp; Folks then ask for an option to have get [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2153"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}