kaalus
kaalus

Reputation: 4574

Migrating contents of Windows Phone 7.5 IsolatedStorage to Windows Phone 8.1

I have a Windows Phone 7.5 game that stores user progress in files located in IsolatedStorage. I am now planning to upgrade the code to WP 8.1. I don't want users to lose their progress when they update, therefore I need to somehow migrate user files from IsolatedStorage to new StorageFile/StorageFolder system after the update.

But, so far I could not find a way to access IsolatedStorage from a WP 8.1 app. Please tell me I am wrong. Am I missing something?

Upvotes: 0

Views: 63

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

Reputation: 21889

The isolated storage folder is exposed via Windows Runtime as the LocalFolder. You access it the same way in Windows Phone 8 Silverlight apps and in Windows Phone Runtime apps.

StorageFolder localFolder = ApplicationData.Current.LocalFolder;

No migration is necessary. So long as your new app is published as an update to the existing one the user's data will maintain.

See: Local folder best practices for Windows Phone 8 and Accessing app data with the Windows Runtime

Upvotes: 1

Related Questions