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

確かに、データベースでデータを更新し続ける1つの方法は、データベースのCopy to output directoryプロパティをCopy if newer;に変更することです。ref

DBの種類によって異なりますが、プロジェクトを右クリックして選択Add existing itemし、ファイルに移動してプレストすることもできます。

于 2013-03-06T16:26:32.027 に答える
2

方法があります。ファイルの[出力ディレクトリにコピー]プロパティをCopy Alwaysまたはとして設定しますCopy if newer

于 2013-03-06T16:22:39.727 に答える