我有一台视窗电话,依靠一台XML数据文档,该数据文档是随附而包的。 第一次用电话接手时,我把档案装上孤立的储存。 一旦档案被装入孤立的储存,该仪器就使用孤立的数据储存版本。 在我的下一个版本(市场更新版)中,XML文件将有更多的内容,我如何每份更新一次更新一次更新数据(市场新版)?
I thought I could change the file name in the isolated storage, but that would leave trash behind. I could also check for exceptions when I load the XML file, but are there any other, more elegant ways? I do not want to check for the old file in the isolated storage every time my app runs.
The ideal scenario would be to put a piece of code that would be executed once when the new version of the app is loaded onto the phone, is there a way to do that?