1

how can I add my database file to my project?

I do as usual, "add files to projectName" and select the sql file, it is supposed added

enter image description here

but, I have the same response to my code if this is added or not, so, I suppose the resource is not properly added

How should I do it?

Thank you in advance

I did:

enter image description here

Is that what I should do, isn't it?

Thanks!

4

1 回答 1

0

您是否尝试将 sql 文件的 Copy to output 属性设置为始终复制?

来自 msdn:

复制到输出目录属性 此属性指定将所选源文件复制到输出目录的条件。如果永远不要将文件复制到输出目录,请选择不复制。如果要始终将文件复制到输出目录,请选择始终复制。如果仅当文件比输出目录中同名的现有文件更新时才复制文件,请选择如果更新则复制。

于 2012-09-03T16:59:55.117 回答