Include all files when debugging in Visual Studio?

How to configure Visual Studio 2008 to include all files in the project root directory during debugging?

I have several files in the project root folder that are not copied to the bin / debug folder, so when I am going to debug the application, I have to manually copy the files. I am looking for a way to make VS automatically include these files in the debug build process. Any clues?

Thank you. / Adam

+5
source share
3 answers

For files that are not related to the source and are not related to resources (therefore, they are not part of the compilation), set the Copy to output directory parameter in the properties of this file to a value other than Do not copy.

+8
source

Try to include the files in the solution, and as soon as they appear in your project tree, set the "Copy to output directory" property to "Always copy" or "Copy if new"

+3
source

It’s easier for me to store them in the bin folder, but add them to the solution as elements of the solution. Thus, they are part of the solution, stored under source control, etc., but are always in the right place when you need it at runtime.

0
source

All Articles