TFS 2010 build cannot handle custom MSBuild script which generate multiple files in multiple directories?

On a build system, TFS handles the binary output directory and the copying of its output to a drop folder a bit special. It generates a central output directory for all output files.

Up vote 0 down vote favorite share g+ share fb share tw.

I have a custom MSBuild script (e.g. WpfResources. Proj), in which I scan through multiple folders for *. Resx files anc build .

NET satellite resource dlls using the AL task. The output of this WpfResources. Proj contain multiple *.resources.

Dll under different folders (corresponding to different projects which will need these resource dlls). The example output folder structure is shown as following: WpfResources Bin Project1 zh-CN Project1.resources. Dll es-ES Project1.resources.

Dll ... Project2 zh-CN Project2.resources. Dll es-ES Project2.resources. Dll ... This WpfResources.

Proj can be built correctly by MSBuild.exe. However if I run it in TFS 2010 build (i.e. Create a build definition and refers to the WpfResources.

Proj to build), it failed to copy all those resource dlls into the drop location. Actually it outputs nothing to the drop location even though on the actual build PC, the output is fine. How can TFS 2010 build handle custom MSBuild scripts which output multiple files under multiple folders?

Is there something missing in my WpfResources. Proj which the Team build will consider as outputs of this MSBuild project? Msbuild tfs2010 tfsbuild vsts2010 link|improve this question edited Sep 18 '11 at 12:26kroonwijk3,6761421 asked Aug 17 '11 at 18:42jhy12.

On a build system, TFS handles the binary output directory and the copying of its output to a drop folder a bit special. It generates a central output directory for all output files. I would imagine that your MSBuild project does output the standard way as if it were on a development system, with output bins under the project folder structure.

TFS will not copy them to the drop folder, because by default, it only copies the binaries it produced under the central output folder. For our systems, we solved the issue (that also goes for building VS Setup projects) but having a manual copy action embedded in the build template that copies the MSBuild output to either the centralized bin output folder, or directly towards the drop folder location. For adding such a custom action, please see the fine TFS2010 customization blog of Ewald Hofman at: http://www.ewaldhofman.

Nl/post/2010/04/29/Customize-Team-Build-2010-e28093-Part-4-Create-your-own-activity.aspx. Hope that helps.

We did resort to such custom copy action too. Thanks for the confirmation & explanation. – jhy Feb 29 at 23:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions