all groups > visual studio .net general > january 2007 >
You're in the

visual studio .net general

group:

Copy compiled files after build (Team Build Server)


Copy compiled files after build (Team Build Server) MKruer NO[at]SPAM gmail.com
1/31/2007 9:58:37 AM
visual studio .net general:
I am trying to set up my build so after it complies successfully, it
copies the binaries into a common share which will later be packaged,
by another build process. I tried this recommend way off of MS forums,
but it gives me an error.

F:\Build_Management\Team_Build\ProjectName\BuildType
\TFSBuild.proj(151,10): error MSB4066: The attribute "SourceFiles" in
element <Copy> is unrecognized.

I am using VS 2005

<ItemGroup>
<FilesToCopy Include="$(BinariesRoot)\$(Platfom)\$(Configuration)
\*.*" />
<Copy SourceFiles="@(FilesToCopy)" DestinationFiles="@(FilesToCopy-
[quoted text, click to view]
</ItemGroup>

Any help would be appreciated.

Thank you

-Matt-
Re: Copy compiled files after build (Team Build Server) MKruer NO[at]SPAM gmail.com
2/1/2007 11:40:34 AM
Rephrase of the original question.
I am having issues with something that should be very simple. After I
compile a project using team build I want to copy the complied
binaries to a centralized location. I found this on the MS forums, but
it returns an error.

<ItemGroup>
<FilesToCopy Include="$(BinariesRoot)\$(Platfom)\$(Configuration)
\*.*" />
<Copy SourceFiles="@(FilesToCopy)" DestinationFiles="@(FilesToCopy-
[quoted text, click to view]
</ItemGroup>

I also have another question on how to invoke another job after this
one completed successfully.

Re: Copy compiled files after build (Team Build Server) Mike Blake-Knox
2/6/2007 1:29:08 PM
In article <1170358834.132324.8820@k78g2000cwa.googlegroups.com>,
[quoted text, click to view]

Use the Build Events tab of the project's properties to run a post
build event that executes a series of command line (DOS like)
statements to copy your files.

You can include the command to run your "other job" afterwards.

Hope this helps

Mike
AddThis Social Bookmark Button