How can I get MSBuild to copy all files marked as Content to a folder, preserving folder structure?
问题 As part of my solution build, I want to copy all "Content" files (asp?x etc) to another folder. Since these are so clearly tagged in the project, I thought there must be an easy way to copy these instead of writing my own post-build step with xcopy. Unfortunately I haven't been able to figure this out - this msbuild thing is incompatible with my brain. I just want a step like but can't figure out the syntax to use. Bat file syntax suggestions would not be an answer to this question - only