I have 3 TFS Builds (2 Dev and 1 Cert).
I would like to modularize the builds so I don't have to edit 3 files each time I make a change to the common items.
The problem I have is that Only the items in the build folder (under TeamBuildTypes) are automatically retrieved by the Team Build. I can put in code in my build process to get other files, but by then it is too late.
Here is the scenario that I have. I make a "Common" location for common tasks. I then went and made changes to that file. Because the file does not down load until my build process tells it to down load it is retrieved too late (the import has already happened and the MSBuild process has constructed the build targets in memory).
I thought about adding it to the build's workspace, but then it will be retrieved in the Get Sources target (which is also too late).
I can't see a solution that will not have me duplicating the file or not using source control...
Any Ideas?
There's no "ideal" solution to this problem in Team Build 2008, your best option is to put the common things on the build machine in $(MSBuildExtensionsPath)
which resolves to C:\Program Files\MSBuild
and then reference them from there.
If your build configurations are very similar you could:
TFSBuild.proj
.<Import Project="TFSBuild.$(BuildDefinitionName).proj" />
.<BuildDefinitionName>.proj
.