tags:

views:

61

answers:

1

Hello,

The jist is I want to copy all the compiled files from a project to another folder after a build is finished. I figured I would use a Copy task in the AfterBuild target. Is there any way to get a list of built files in this target so I know exactly which files to copy?

Thanks

Update:

Read my comment below to see how I figured this out. However, this isn't an elegant solution. What I am really looking for is an ItemGroup of built files. Does that exist?

+1  A: 

The build process does what it needs to & writes what it needs to. It doesn't know that you in particular are only interested in a subset of what it does.

Why do you think the FileWrites itemgroup isn't clean enough?

Our build process ouputs .dll & .pdb, and also .config, .xml, .doc. We use post-build copy operations based on the FileWrites group, including a couple of conditional operations for a few customer-specific files.

Edit:

With our upcoming Silverlight project, we'll also be dealing with .xaml & .xap.

DaveE
the FileWrites contains multiple copies of the files, from the output path and the obj dir, as well as a .cache file that I don't need. It works, but I have to scrub the data a bit to get what I actually want. Seems that this should just be something available (it is when calling a msbuild task). I'm just confirming that there isn't anything available that I havent found yet.
Ely
DaveE