views:

22

answers:

3

Using VS 2008 I want to copy files in the project folder to the /Debug folder on each build.

How can you do that?

There's an answer for C# but it doesn't work for VC++ (xml parse error on project load)

A: 

Disclaimer: This works in .Net development.

In your solution explorer select the file you wish to have copied. Then in the properties panel under "Build action" select "Copy to output".

This should solve your problem.

Michael Wulff Nielsen
A: 

It's a long time since I last used VC++, but I guess you still have possibility to define post-build steps, e.g. to copy files into the output folder (debug or release). Check the property page for your project ("Build Events") and you should be able to find it there.

M4N
A: 

Simply changing the settings for "Copy to output directory" should work. There are special cases, like embedding the thing (see this related question), but normally it should be just fine.

Thomas Wanner
They're actually not part of the "project" perse, so that the VS workspace remains uncluttered. But they do sit in the same folder as the source files on disk (from sub directory /assets). What I want to do is write a command that copies everything in (source code dir)/assets/* to /Debug..
bobobobo