就是把现有文件转移到隔离空间即可
代码如下
private async void CopyDB()
{
StorageFile fage = await ApplicationData.Current.LocalFolder.GetFileAsync("Logos.png");
if (!File.Exists(fage.Path)) {
StorageFile storageFile = await Package.Current.InstalledLocation.GetFileAsync(@"Assets\Logos.png");
var path = Windows.Storage.ApplicationData.Current.LocalFolder;
await storageFile.CopyAsync(path);
}
}