I want to copy an xml file from the main directory to bin\\Debug after building the project, but my solution doesn\'t work. I edited .csproj file a
bin\\Debug
.csproj
Is the xml file in your project? Then one of its properties is CopyToOutputDirectory. Set it to CopyAlways and when the project builds the file will be copied out to bin\debug.