Reusing MSBuild targets for different build types
Posted
by Zbigniew Kawalec
on Stack Overflow
See other posts from Stack Overflow
or by Zbigniew Kawalec
Published on 2010-05-20T13:59:07Z
Indexed on
2010/05/20
22:40 UTC
Read the original article
Hit count: 287
I have got a problem with reusing the same MSBuild targets for different build types on TFS. Let me describe the situation.
I have got two build types (CI - for continuous integration and RC - for release candidate). So I have got two build types defined in the TFS. Their *.proj files are under: - $/Repository/TeamBuildTypes/CI - $/Repository/TeamBuildTypes/RC
Also, I have got some common targets, like: ChnageVersion.taget, Deploy.tagert, etc. and I import them in the main *.proj file. Unfortunaltely, I have to keep two copies of them, one in each build type. I've been struggling to have only one copy of the common targets somewhere, but I give up. I can't do it, because when the build starts on a build agent, the build files are downloaded from: $/Repository/TeamBuildTypes/CI only. How can I make the build agent / TFS / whatever to download also $/Repository/TeamBuildTypes/Common for example?
© Stack Overflow or respective owner