here is the question: when you have a file you can open properties of that file and set "Copy to Output Directory" to "Always Copy",however, when you want to do the same thing for a folder, there is no option for copying.
all there is rest to create that folder is to create it programmatically.
do you know how to do that the way you do it for a file?
serkan sendur
821
Postaholic
Banned
Recommended Answers
Jump to Postcopy to output directory just makes a copy of the selected resource where the program is compiled to. It has no real significance other than keeping you from having to manual find and copy files to a single location.
if you need a sub directory in the same directory …
Jump to PostIf you just want to copy an empty folder, it won't work, but if the folder contains files, you can right click in the soution and click create new folder, then copy your files in explorer to that new folder in your project directory, then go back to your solution …
Jump to Postyou could create a dummy file, a little text file or something that serves no purpose but to encourage the creation of the folder, but other than that, you might just have to wait for a new version of VS to fix that.
All 9 Replies
Diamonddrake
397
Master Poster
serkan sendur
821
Postaholic
Banned
Diamonddrake
397
Master Poster
serkan sendur
821
Postaholic
Banned
Diamonddrake
397
Master Poster
sknake
1,622
Senior Poster
Featured Poster
serkan sendur
821
Postaholic
Banned
sknake
1,622
Senior Poster
Featured Poster
serkan sendur
commented:
good catch
+4
serkan sendur
821
Postaholic
Banned
sknake
commented:
i never thought of that and its simple enough
+2
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.