473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

output directory being cleaned out during build

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
1 992
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Don Garrett | last post by:
I have an XML document at the root of a directory tree that contains relative URIs to resources in a directory tree. During XSLT processing, these URI's can be used without any problems to...
11
by: Etienne Charland | last post by:
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5 class libraries. I didn't have any problems until recently. I added a new project containing reports. I am using...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
4
by: Alpha | last post by:
Hi, I'm working on different projects that each is a class library which is run off of a main application. Can I change the output path of just the compiled DLL file to the path of the main...
1
by: Bryan Glennon | last post by:
I have a solution with a web app and a web service. There is a virtual directory set up on my local server, //localhost/foo and it points to my development directory, c:\blah\blah\foo. When I...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
3
by: tony | last post by:
Hello! When I build an exe file that use 6 class library dll I get this error. Could not copy temporary files to the output directory. The file 'MeltPracStorage.dll' cannot be copied to the run...
0
by: Henning Krause [MVP - Exchange] | last post by:
Hello, Environment: Visual Studio 2005 SP1, Web Deployment Projects installed I hava Web Application project (updated from Visual Studio 2003) and a Web Deployment for that web application....
3
by: David V | last post by:
I'm having trouble copying DLLs from a folder in my project to the project's output directory. I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder in my project. The DLLs VS...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.