Property "Copy to Output Directory" added in VS 2005

If you often find yourself writing post build project events just for copying some files to output directory you’ll appreciate this new property “Copy to Output Directory” added to file’s properties (just beneath the Build Action). Just click on a file in Solution Explorer and check out the Properties window. There are three valid values you can set:



  • Do not Copy (default)

  • Copy always

  • Copy if newer

It is pretty clear what they stand for and I think this addition is a small but nice to have. At least I will spend less time writing post build events. It won’t help you copying user.config file, though, as this file can’t be part of the project – so, don’t forget how to write post build events.

Leave a Reply