How to use datasource with Visual Studio Express 2010 (CONTINUED...)
Posted on 2010-09-03
Looks like I was a bit hasty in accepting the answer to the previous related question.
It says if I add my datasource (in my case VeraDB.sdf) to my project, then the database file will be copied
to the output directory each time the project is built.
So the question then is, why is that not happening? Using the |DataDirectory| macro SHOULD have worked,
but the program still complains it cannot find the database file. If I manually copy the database file into the
target: C:\Documents and Settings\Al Bogus\My Documents\Visual Studio 2010\Projects\VERA\VERA\bin\Debug, then the program can find it when I debug. But I don't get why I should have to do that. Is that not supposed to happen automatically if Copy Always is set as a property of the Datasource?
What is it I have failed to do, then?