Visual-studio – Include all files when debugging in Visual Studio

debuggingfile-not-foundvisual-studio-2008

How do I setup Visual Studio 2008 to include all files in the project root when debugging?

I have a few files in the project root folder which are not copied to the bin/debug folder so when I am about to debug the application I have to manually copy the files. I'm looking for a way to make VS automatically include these files in the debug build process. Any hints?

Thank you. /Adam

Best Answer

For non-source and non-resource files (so are not part of the compilation), set the "Copy To Output Directory" setting in that file's properties to something other than "Do Not Copy".