output directory being cleaned out during build

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.
 
P

Paul Hemans

Problem resolved ... I have a setup project that targetted the same
directory for output.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top