I have a VS2010 project which should create the dataIn and dataOut directory in the bin \ debug directory to allow some tests to run.
Creating a dataIn directory is simple - just add the contents folder to the project and set the “Copy to output directory” property for each of the files it contains to “Always copy” (or edit the project file to use a wildcard to catch all the files as suggested by other answers to SO) - the directory will be automatically created by VS so that files can be copied to it.
My question is: How can I guarantee that the dataOut directory will be created automatically if necessary?
There are no files in it, so there is nothing for this directory in ItemGroup. If I add the directory entry to the project file manually, I get an error:
"<path>\dataOut" is actually a directory. The "Copy" task does not support copying directories.
(edit: removed underscores from directory names for italics to work!)
source share