output directory being cleaned out during build

  • Thread starter Thread starter Paul Hemans
  • Start date Start date
P

Paul Hemans

VS2005...
I need to persist a database between builds, while in development.
The problem is that the mdf file is being deleted whenever I start the
application from VS. There is a setting on the mdf file "Copy to output
directory" which is currently set to "Do not copy". However, that doesn't
seem to be related as whenever I do a "Build solution" ALL the files in that
output directory are removed during the process.
I use "|DataDirectory|" as part of the database connection string. So I need
a database file to be there. I don't understand why the directory is being
cleaned out. I can't find any option to stop that from happening.
 
Problem resolved ... I have a setup project that targetted the same
directory for output.
 
Back
Top