Search code examples
windows-8microsoft-metrowindows-runtime.net-4.5

Roaming Folder in Metro app pointing to Local\*\*\RoamingState


I want to store app settings in Roaming Folder. (Settings are very small ~2KB).

I am storing in ApplicationData.Current.RoamingFolder folder. The above is pointing to C:\Users\Tilak\AppData\Local\Packages\b5dea8e0-504c-4105-8b4c-6d2da32816f7_vbe7xwj32evkc\RoamingState

I am surprised why the above location is pointing to User\Local folder and not User\Roaming.

ApplicationData.Current.LocalFolder is pointing to C:\Users\Tilak\AppData\Local\Packages\b5dea8e0-504c-4105-8b4c-6d2da32816f7_vbe7xwj32evkc\LocalState. Also, What additional steps needs to be followed for sync'ing multiple device on same live account using Roaming storage.

Thanks


Solution

  • I am surprised why the above location is pointing to User\Local folder and not User\Roaming.

    This is because User\Roaming is used for user profiles roaming within a Domain. Roaming User Profile. It has nothing to do with Roaming feature of Windows 8 Metro style apps.

    What additional steps needs to be followed for sync'ing multiple device on same live account using Roaming storage.

    Nothing. Just set the data to Roaming storage and it will be available across devices albeit with some time lag (not real time synchronization).