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.
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 に答える