Adding Files to a Click Once Deployment

One good way of doing this is:

  • Create a folder under the app in VS name e.g. “datafiles”
  • Add all files to that folder using Add as link in the dialog box after selecting Add existing item on the folder
  • Mark all files as Copy if newer (Copy to output directory property)
  • Make sure the build action is content

–> when you publish the files will be put in that folder and be a part of the application installation

Good luck!

Leave a Comment