output directory being cleaned out during build

output directory being cleaned out during build

am 18.04.2008 05:43:18 von 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.

Re: output directory being cleaned out during build

am 19.04.2008 00:57:41 von Paul Hemans

Problem resolved ... I have a setup project that targetted the same
directory for output.
"Paul Hemans" wrote in message
news:Of7tZZQoIHA.4620@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.
>