How to get only the changed source code during the Team Build 2008

In un post del forum Microsoft è stato chiesto come fare una build di un progetto su Team System, compilando solamente i progetti modificati e non tutta la solution.
Il post è un pò vecchiotto (29 agosto 2007) ma credo ancora valido
La riposta è la seguente:

In Orcas, two properties were added specifically for this purpose. Setting IncrementalGet to true in your TFSBuild.proj file will result in each build of that build definition reusing the existing workspace and simply getting the files that have changed since the last build.  By contrast, the default setting will result in every file in the workspace being retrieved each time the build is executed.

Property IncrementalBuild takes it one step further. In addition to doing what IncrementalGet does, it does not clean the binaries output directory. The result is that each build will simply build binaries corresponding to the source that's changed.

You can find more information about these properties on Buck's and Aaron's blogs:

http://blogs.msdn.com/buckh/archive/2007/07/24/tfs-2008-some-properties-that-you-can-use-to-customize-your-build.aspx

http://blogs.msdn.com/aaronhallberg/archive/2007/07/05/getting-the-modified-files-for-a-team-build-build-in-orcas.aspx

Se siete interessati al thread, cliccate quì.

Edit 15-09 14:40:
Un altro interessante link:
http://blogs.msdn.com/aaronhallberg/archive/2008/02/12/team-build-2008-property-reference.aspx

Edit 16-09 12:31:
si può ottenere lo stesso risultato in TFS 2005.
Nel seguente link è spiegato come fare:
http://blogs.microsoft.co.il/blogs/maordavid/archive/2008/06/12/configure-team-foundation-build-for-an-incremental-build.aspx

 

Tags:

posted @ lunedì 15 settembre 2008 12.48

Print

Comments on this entry:

# re: How to get only the changed source code during the Team Build

Left by Vito Arconzo at 15/09/2008 14.06
Gravatar
Interessante sarebbe il deploy delle sole dll modificate.

# re: How to get only the changed source code during the Team Build

Left by Salvatore Di Fazio at 15/09/2008 14.08
Gravatar
Si,
lo sto testando.
Male che vada inserirò un errata corrige a breve.

Your comment:



 (will not be displayed)


 
 
 
Please add 4 and 5 and type the answer here:
 

Live Comment Preview: