Reputation: 63
In my current project I have a folder with several files that the application needs to function properly. The folder is in the bin/debug
folder and with the line Application.StartupPath
I can easily access the files. It couldn't be easier.
However, when I publish the application the files don't seem to be included in the project, at least not at the StartupPath
.
So my question is: how am I supposed to add this folder to my published application?
Upvotes: 0
Views: 371
Reputation: 9193
First, you'll need to include those files in your project. Then click each file in the Solution Explorer and in the Properties Windows change the value for "Copy to Output Directory" to "Copy Always".
Upvotes: 1