Search code examples
debuggingbuildvisual-studio-2013output-directory

"Copy to ouput directory" doesn't work like I thought


This question is probably asked thousand times, but no answer helped me. I added a XML file to my project and wanted it to be copied into the output directory when I debug/build the project. So I set "Copy to ouput directory" to "Copy always", but Visual Studio/Compiler doesn't copy the file into the output directory. How can I make Visual Studio copy the file into the output directory when I debug/build?

Screenshot of my project


Solution

  • You need to change the Build Action (Buildvorgang) to Content or None