By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,780 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,780 IT Pros & Developers. It's quick & easy.

output directory being cleaned out during build

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Problem resolved ... I have a setup project that targetted the same
directory for output.
"Paul Hemans" <da****@nowhere.comwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
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.

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.