.net - MSBuild: adding/copying empty folders via Zip/Copy task -


After a pre-am aggregator site trying to copy / Zip with empty folder (pre-selection) Includes. It seems that empty folders are not included in the list of items, after the CreateItem function. How can I take care of empty folders?

Thank you

I do not think this is the most beautiful solution, but before that Whatever is done, is making a folder in the solution, and to include a text file called placeholder.txt or something similar, and installing the properties of the text file. The result is a folder, where you want it to have a file that you do not want. After this we remove the placeholder.txt file before uploading it, in all build scripts.

Not elegant but it works for our scenario.


Comments