Codementor Events

Attach .csv files to deployed program?

Published Aug 01, 2017

I am writing a program that populates listBoxes with data from .csv files.

It runs flawlessly in debugging/release, however when I try to publish the program it can't find the .csv / DEPLOY files.

In the solution explorer the .csv files have the "Build Action" property set to "Content", the "Copy to Output Directory" set to "Copy always", and they are set to "Include (Auto)" in the "Application Files" folder on the "Publish Tab".

When I double-click the "Setup" application that is downloaded, it successfully installs the program and then says: 'Could not find the file'.

Any ideas on what I need to do?

Discover and read more posts from Alexander Plattel
get started
post commentsBe the first to share your opinion
Show more replies