Reputation: 4574
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
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