1

I have a game which uses a database to store some information. Is it possible to tell visual studio to include the datbase file with each build? Such that the bin folder will contain the application executable and the database. I know I can copy and paste the database each time but I want it to be automatic.

4

2 回答 2

2

您当然可以,在数据库中保持数据更新的一种方法是将 DataBase 的Copy to output directory属性更改为Copy if newer; 参考

这取决于它是什么类型的数据库,但您也可以右键单击您的项目并选择Add existing item,导航到文件和 presto。

于 2013-03-06T16:26:32.027 回答
2

有一种方法:将文件的 Copy to Output Directory 属性设置为Copy AlwaysCopy if newer

于 2013-03-06T16:22:39.727 回答