‘Copy to Output Directory’ Property in VS2005

Posted In Tutorials - By NitiN Kumar Jain On Friday, November 7th, 2008 With 0 Comments

Pin It

I am sure many of you must be new to this property setting in Visual Studio 2005 Copy to Output Directory.

If you many a times write post build events/programs to just copy few files to the output directory then this new property is really handy for you.

This setting has been added to file’s properties. Select a file from the solution explorer and check out its properties in properties window.

Three possible values:

  • Do not Copy (default value)
  • Copy always
  • Copy if newer

You can set it to “Copy always”, if you wish to copy that file to the Output Directory whenever the project is built.

This small setting saves a lot of headache. Isn’t it?

Happy coding.